thymeleaf编码使用utf-8
This commit is contained in:
parent
c400791d1a
commit
e581b9c11a
|
@ -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>
|
|
@ -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>
|
|
@ -49,7 +49,7 @@ public abstract class BaseController {
|
|||
* @return
|
||||
*/
|
||||
public static String jsp(String path) {
|
||||
return path + ".jsp";
|
||||
return path.concat(".jsp");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue