thymeleaf没有提示问题

忘记√了,重启idea就ok了


idea thymeleaf使用

1.导入启动器

<!-- thymeleaf模板-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

控制一下版本(3.0以上的thymeleaf必须卑配置2.0以上的布局)
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.3.0</thymeleaf-layout-dialect.version>


猜你喜欢

转载自blog.csdn.net/loveyour_1314/article/details/80817222
今日推荐