mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-18 17:26:39 +08:00
修正模板字符编码
This commit is contained in:
parent
bef080c60a
commit
cb18eec802
@ -22,7 +22,7 @@ public class VelocityInitializer
|
||||
// 加载classpath目录下的vm文件
|
||||
p.setProperty("file.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
|
||||
// 定义字符集
|
||||
p.setProperty(Velocity.ENCODING_DEFAULT, Constants.UTF8);
|
||||
p.setProperty(Velocity.INPUT_ENCODING, Constants.UTF8);
|
||||
p.setProperty(Velocity.OUTPUT_ENCODING, Constants.UTF8);
|
||||
// 初始化Velocity引擎,指定配置Properties
|
||||
Velocity.init(p);
|
||||
|
Loading…
Reference in New Issue
Block a user