提交 c738a1a6 编写于 作者: W wenguang

thymeleaf配置修改

上级 333e0319
...@@ -6,20 +6,20 @@ spring: ...@@ -6,20 +6,20 @@ spring:
username: root username: root
password: 1234 password: 1234
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
thymeleaf:
thymeleaf: prefix: classpath:/templates/
prefix: classpath:/templates/ suffix: .html
suffix: .html mode: LEGACYHTML5
mode: LEGACYHTML5 encoding: UTF-8
encoding: UTF-8 content-type: text/html
content-type: text/html # 禁用 thymeleaf 缓存
# 禁用 thymeleaf 缓存 cache: false
cache: false
mybatis: mybatis:
#注意:一定要对应mapper映射xml文件的所在路径 #注意:一定要对应mapper映射xml文件的所在路径
mapper-locations: classpath:mapper/*.xml mapper-locations: classpath:mapper/*.xml
# 注意:对应实体类的路径 # 注意:对应实体类的路径
type-aliases-package: com.we.pojo type-aliases-package: com.we.pojo
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册