配置版本
依賴父項目
引入web項目核心依賴包
spring-boot-starter-web
如果使用thymeleaf模版,可直接引入spring-boot-starter-thymeleaf,這個已經包含了spring-boot-starter-web的依賴
如果還用到了thymeleaf的layout layout dialect,還需要引入另外一個依賴
添加devtools依賴
添加maven-plugin插件
添加依賴
Application.java
application.yml