折腾了两个多小时
试了n个方法
最后在pom.xml中的properties属性加了这个:
<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>
然后就好了。。。
SpringBoot控制器访问页面css无效的问题
最新推荐文章于 2021-07-11 10:39:46 发布
折腾了两个多小时
试了n个方法
最后在pom.xml中的properties属性加了这个:
<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>
然后就好了。。。