升级velocity到最新版本2.3
This commit is contained in:
		
							parent
							
								
									31106c91fb
								
							
						
					
					
						commit
						16734b1d88
					
				
							
								
								
									
										10
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pom.xml
									
									
									
									
									
								
							@ -31,7 +31,7 @@
 | 
				
			|||||||
        <commons.fileupload.version>1.4</commons.fileupload.version>
 | 
					        <commons.fileupload.version>1.4</commons.fileupload.version>
 | 
				
			||||||
        <commons.collections.version>3.2.2</commons.collections.version>
 | 
					        <commons.collections.version>3.2.2</commons.collections.version>
 | 
				
			||||||
        <poi.version>4.1.2</poi.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>
 | 
					        <jwt.version>0.9.1</jwt.version>
 | 
				
			||||||
    </properties>
 | 
					    </properties>
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
@ -132,14 +132,8 @@
 | 
				
			|||||||
            <!-- velocity代码生成使用模板 -->
 | 
					            <!-- velocity代码生成使用模板 -->
 | 
				
			||||||
            <dependency>
 | 
					            <dependency>
 | 
				
			||||||
                <groupId>org.apache.velocity</groupId>
 | 
					                <groupId>org.apache.velocity</groupId>
 | 
				
			||||||
                <artifactId>velocity</artifactId>
 | 
					                <artifactId>velocity-engine-core</artifactId>
 | 
				
			||||||
                <version>${velocity.version}</version>
 | 
					                <version>${velocity.version}</version>
 | 
				
			||||||
                <exclusions>
 | 
					 | 
				
			||||||
                    <exclusion>
 | 
					 | 
				
			||||||
                        <groupId>commons-collections</groupId>
 | 
					 | 
				
			||||||
                        <artifactId>commons-collections</artifactId>
 | 
					 | 
				
			||||||
                    </exclusion>
 | 
					 | 
				
			||||||
                </exclusions>
 | 
					 | 
				
			||||||
            </dependency>
 | 
					            </dependency>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <!-- collections工具类 -->
 | 
					            <!-- collections工具类 -->
 | 
				
			||||||
 | 
				
			|||||||
@ -20,7 +20,7 @@
 | 
				
			|||||||
        <!--velocity代码生成使用模板 -->
 | 
					        <!--velocity代码生成使用模板 -->
 | 
				
			||||||
        <dependency>
 | 
					        <dependency>
 | 
				
			||||||
            <groupId>org.apache.velocity</groupId>
 | 
					            <groupId>org.apache.velocity</groupId>
 | 
				
			||||||
            <artifactId>velocity</artifactId>
 | 
					            <artifactId>velocity-engine-core</artifactId>
 | 
				
			||||||
        </dependency>
 | 
					        </dependency>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- collections工具类 -->
 | 
					        <!-- collections工具类 -->
 | 
				
			||||||
 | 
				
			|||||||
@ -20,10 +20,9 @@ public class VelocityInitializer
 | 
				
			|||||||
        try
 | 
					        try
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            // 加载classpath目录下的vm文件
 | 
					            // 加载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.INPUT_ENCODING, Constants.UTF8);
 | 
				
			||||||
            p.setProperty(Velocity.OUTPUT_ENCODING, Constants.UTF8);
 | 
					 | 
				
			||||||
            // 初始化Velocity引擎,指定配置Properties
 | 
					            // 初始化Velocity引擎,指定配置Properties
 | 
				
			||||||
            Velocity.init(p);
 | 
					            Velocity.init(p);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user