我这里是这样就解决了,当然.vm文件都是UTF-8
另外,在liferay下
我修改velocity.properties文件的file.resource.loader.path不起作用,只有resourceLoaderPath设置才生效,不知道为什么
路过知道的同学提点下吧
<bean id="velocityConfig"
class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
<property name="resourceLoaderPath" value="/WEB-INF/vm/"></property>
<property name="velocityProperties">
<props>
<prop key="output.encoding">UTF-8</prop>
<prop key="input.encoding">UTF-8</prop>
</props>
</property>
</bean>
另外,在liferay下
我修改velocity.properties文件的file.resource.loader.path不起作用,只有resourceLoaderPath设置才生效,不知道为什么
路过知道的同学提点下吧