thymeleaf编码使用utf-8

This commit is contained in:
shuzheng 2017-03-25 14:25:32 +08:00
parent c400791d1a
commit e581b9c11a
5 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,7 @@
</bean>
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine"/>
<property name="characterEncoding" value="UTF-8"/>
</bean>
</beans>

View File

@ -27,6 +27,7 @@
</bean>
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine"/>
<property name="characterEncoding" value="UTF-8"/>
</bean>
</beans>

View File

@ -49,7 +49,7 @@ public abstract class BaseController {
* @return
*/
public static String jsp(String path) {
return path + ".jsp";
return path.concat(".jsp");
}
/**

View File

@ -31,6 +31,7 @@
</bean>
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine"/>
<property name="characterEncoding" value="UTF-8"/>
</bean>
</beans>

View File

@ -36,6 +36,7 @@
</bean>
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine"/>
<property name="characterEncoding" value="UTF-8"/>
</bean>
</beans>