SpringBoot整合Thymeleaf遇到的问题
2020-06-28 05:00
656 查看
1.thymeleaf不访问html
解决:controller中的只能使用@Controller的注解,不能使用@RestController。
@RestController相当于@Controller+ @ResponseBody
参考以下:
https://blog.csdn.net/qq_36838406/article/details/100867004
2. Error resolving template [hello], template might not exist or might not be accessible by any of the configured Template Resolvers
**问题:**找不到html文件
解决:
spring.thymeleaf.prefix=classpath:/templates 在最后添加一个"/": spring.thymeleaf.prefix=classpath:/templates/
相关文章推荐
- Spring-Boot整合通用PageHelper插件遇到的问题
- 在idea里使用SpringBoot整合MyBatis时遇到的Mapper扫描不到的问题
- SpringBoot整合Thymeleaf出现无法解析templates下.html文件的问题
- springboot中整合activiti流程设计器时遇到访问项目需要输入tomcat用户名和密码的问题
- springboot整合thymeleaf遇到的坑
- Spring Boot 整合Thymeleaf 之表单提交 问题
- springboot整合mybatis遇到的问题
- Spring Boot 整合Spring Security 和Swagger2 遇到的问题小结
- SpringBoot整合activiti遇到的一些问题
- 使用springboot+mybatis整合项目时可能遇到的问题
- 使用idea学习SpringBoot整合Mybatis,遇到mapper无法注入的问题
- SpringBoot之整合Thymeleaf 因为版本问题而不能起作用
- idea+springboot+ thymeleaf+ajax遇到的问题
- Spring boot和Dubbot整合的小项目遇到的问题和解决方法
- springboot 2.0 集成 shiro 和 thymeleaf-extras-shiro 2.0 使用过程遇到的问题
- spring boot整合mybatis测试时遇到的问题
- Spring boot整合mybatis puls遇到的问题
- SpringBoot 整合 Shiro 过程中遇到奇怪的类型转换问题
- IDEA创建一个spring-boot整合Mybatis的模块时,遇到的问题
- 总结一下springboot项目整合log4j2框架过程中遇到的问题