宜春
2019-12-30 08:34springboot2.2.2版本导入Thymeleaf的时候报404,已解决
springboot2.x版本以及默认是Thymeleaf3.x,我也检查过了, 如果springboot是用1.5的版本的 那时候thymeleaf默认版本是2,需要使用3版本要添加如下版本号:thymeleaf.version 为3.0.9还有thymeleaf-layout-dialect.version为2.1.1那个配置。 而我的springboot是2.2.2版本的,加了这个就找不到thymeleaf的版本了,也就找不到thymeleaf了,动态网页就无法显示。所以我去掉这两行就但还是报404,我就纳闷了,望高人指点!!!
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- springboot2.2.2版本导入Thymeleaf的时候报404,已解决
- java
- intellij-idea
- java-ee
- spring
- maven
- 1个回答