|
|
@ -19,7 +19,7 @@ public class ThymeleafViewResolverConfig {
|
|
|
|
public SpringResourceTemplateResolver templateResolver() {
|
|
|
|
public SpringResourceTemplateResolver templateResolver() {
|
|
|
|
SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();
|
|
|
|
SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();
|
|
|
|
//templateResolver.setPrefix("classpath:/templates");
|
|
|
|
//templateResolver.setPrefix("classpath:/templates");
|
|
|
|
templateResolver.setPrefix("/WEB-INF/templates/");
|
|
|
|
templateResolver.setPrefix("/WEB-INF/templates/thymeleaf");
|
|
|
|
templateResolver.setCharacterEncoding("UTF-8");
|
|
|
|
templateResolver.setCharacterEncoding("UTF-8");
|
|
|
|
templateResolver.setSuffix(".html");
|
|
|
|
templateResolver.setSuffix(".html");
|
|
|
|
templateResolver.setTemplateMode("HTML5");
|
|
|
|
templateResolver.setTemplateMode("HTML5");
|
|
|
|