Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
16734b1d
Commit
16734b1d
authored
Nov 24, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级velocity到最新版本2.3
parent
31106c91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
pom.xml
pom.xml
+2
-8
ruoyi-generator/pom.xml
ruoyi-generator/pom.xml
+1
-1
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java
...in/java/com/ruoyi/generator/util/VelocityInitializer.java
+1
-2
No files found.
pom.xml
View file @
16734b1d
...
...
@@ -31,7 +31,7 @@
<commons.fileupload.version>
1.4
</commons.fileupload.version>
<commons.collections.version>
3.2.2
</commons.collections.version>
<poi.version>
4.1.2
</poi.version>
<velocity.version>
1.7
</velocity.version>
<velocity.version>
2.3
</velocity.version>
<jwt.version>
0.9.1
</jwt.version>
</properties>
...
...
@@ -132,14 +132,8 @@
<!-- velocity代码生成使用模板 -->
<dependency>
<groupId>
org.apache.velocity
</groupId>
<artifactId>
velocity
</artifactId>
<artifactId>
velocity
-engine-core
</artifactId>
<version>
${velocity.version}
</version>
<exclusions>
<exclusion>
<groupId>
commons-collections
</groupId>
<artifactId>
commons-collections
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- collections工具类 -->
...
...
ruoyi-generator/pom.xml
View file @
16734b1d
...
...
@@ -20,7 +20,7 @@
<!--velocity代码生成使用模板 -->
<dependency>
<groupId>
org.apache.velocity
</groupId>
<artifactId>
velocity
</artifactId>
<artifactId>
velocity
-engine-core
</artifactId>
</dependency>
<!-- collections工具类 -->
...
...
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java
View file @
16734b1d
...
...
@@ -20,10 +20,9 @@ public class VelocityInitializer
try
{
// 加载classpath目录下的vm文件
p
.
setProperty
(
"
file.resource.loader
.class"
,
"org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"
);
p
.
setProperty
(
"
resource.loader.file
.class"
,
"org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"
);
// 定义字符集
p
.
setProperty
(
Velocity
.
INPUT_ENCODING
,
Constants
.
UTF8
);
p
.
setProperty
(
Velocity
.
OUTPUT_ENCODING
,
Constants
.
UTF8
);
// 初始化Velocity引擎,指定配置Properties
Velocity
.
init
(
p
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment