1css和js等需要引入的资源放在static 目录下面

2HTML放在templates下面

3templates是默认的模板位置,thymelelaf是默认的模板引擎

4为了防止templates访问不了静态资源,需要加上:

#拼接html前后缀
spring.resources.static-locations=classpath:/templates/
spring.thymeleaf.suffix=.html

*******************************************************************************************************************************************************************************
*******************************************************************************************************************************************************************************8
posted on 2019-07-17 20:44  龙-OSCAR  阅读(220)  评论(0编辑  收藏  举报