diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 309b58099b9757fe6855d75e47c86babcf0524f9..44cc760fe4ec7722e9834175ab8f940e66292564 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,20 +6,20 @@ spring: username: root password: 1234 driver-class-name: com.mysql.cj.jdbc.Driver - - thymeleaf: - prefix: classpath:/templates/ - suffix: .html - mode: LEGACYHTML5 - encoding: UTF-8 - content-type: text/html - # 禁用 thymeleaf 缓存 - cache: false - + thymeleaf: + prefix: classpath:/templates/ + suffix: .html + mode: LEGACYHTML5 + encoding: UTF-8 + content-type: text/html + # 禁用 thymeleaf 缓存 + cache: false mybatis: #注意:一定要对应mapper映射xml文件的所在路径 mapper-locations: classpath:mapper/*.xml # 注意:对应实体类的路径 type-aliases-package: com.we.pojo + # 加载全局的配置文件 + configLocation: classpath:mybatis/mybatis-config.xml