1.前言
以前开发一直使用 springMVC模式开发 ,前端页面常使用 JSP ,现在html5淘汰了 ,要么使用html ,要么使用vue ,
现在使用spring boot ,有必要总结一下 spring boot 对html 的操作 。
2.环境
spring boot 2.1.6.RELEASE
3.操作
(1)下载依赖
org.springframework.boot
spring-boot-starter-security
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-thymeleaf
完整pom
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.6.RELEASE
com.example
security-5500
0.0.1-SNAPSHOT
security-5500
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter-security
org.springframework.boot
spring-boot-starter-web