【发布时间】:2017-06-06 10:31:56
【问题描述】:
我是 thymeleaf 和 springboot 的新手。
我在 IntelliJ IDEA 中使用“New Project”->“Spring Initalizr”创建了一个带有 thymeleaf 的 springboot 项目。
然后我得到一个结构如下所示的项目。
demo
|+-src/main
| +-java
| +-resources
| static
| templates
| application.properties
|-pom.xml
问题是我应该在资源下的静态和模板中放置什么?他们之间有什么区别?
我猜应该将具有 thymeleaf 属性的 .html 文件放在模板中。静态html、css和js怎么样?
谢谢。
【问题讨论】:
标签: intellij-idea spring-boot thymeleaf