1.引入依赖
Web支持(Spring Mvc)
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
模板引擎Thymleaf 整合
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
配置文件修改
spring: thymeleaf: cache: false # 关闭缓存,默认开启 prefix: classpath:/pages/ #修改默认路径 classpath:/templates/
Mybatis 整合
添加依赖【刷新Maven】
<dependency>
Springboot与数据链接
最新推荐文章于 2024-05-30 10:36:12 发布