thymeleaf编码使用utf-8
This commit is contained in:
parent
c400791d1a
commit
e581b9c11a
|
@ -40,6 +40,7 @@
|
||||||
</bean>
|
</bean>
|
||||||
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
||||||
<property name="templateEngine" ref="templateEngine"/>
|
<property name="templateEngine" ref="templateEngine"/>
|
||||||
|
<property name="characterEncoding" value="UTF-8"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -27,6 +27,7 @@
|
||||||
</bean>
|
</bean>
|
||||||
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
||||||
<property name="templateEngine" ref="templateEngine"/>
|
<property name="templateEngine" ref="templateEngine"/>
|
||||||
|
<property name="characterEncoding" value="UTF-8"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -49,7 +49,7 @@ public abstract class BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String jsp(String path) {
|
public static String jsp(String path) {
|
||||||
return path + ".jsp";
|
return path.concat(".jsp");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
</bean>
|
</bean>
|
||||||
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
||||||
<property name="templateEngine" ref="templateEngine"/>
|
<property name="templateEngine" ref="templateEngine"/>
|
||||||
|
<property name="characterEncoding" value="UTF-8"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
|
@ -36,6 +36,7 @@
|
||||||
</bean>
|
</bean>
|
||||||
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">
|
||||||
<property name="templateEngine" ref="templateEngine"/>
|
<property name="templateEngine" ref="templateEngine"/>
|
||||||
|
<property name="characterEncoding" value="UTF-8"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
Loading…
Reference in New Issue