# 配置数据库 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/sampleDB?setUnicode=true&characterEncoding=utf8 spring.datasource.username=root spring.datasource.password= # 配置映射文件路径及实体类的包名 mybatis.mapper-locations=classpath:mappers/*Mapper.xml mybatis.type-aliases-package=com.example.demo.entity # 配置thymeleaf模板引擎的缓存,设置为关闭,默认为true开启 spring.thymeleaf.cache=false # 配置thymeleaf模板引擎的前/后缀,(可选项) spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.html



