application.yml 765 B

12345678910111213141516171819202122232425262728
  1. server:
  2. port: 8080
  3. servlet:
  4. session:
  5. timeout:
  6. 86400
  7. spring:
  8. profiles:
  9. active:
  10. - dev
  11. thymeleaf:
  12. cache: false #默认true
  13. enabled: true #启用MVC Thymeleaf视图分辨率 默认true
  14. check-template-location: true #检查模板是否存在,然后再呈现 默认true
  15. enable-spring-el-compiler: true #默认false
  16. mode: LEGACYHTML5
  17. encoding: utf-8
  18. servlet:
  19. content-type: text/html
  20. prefix: classpath:/templates/
  21. suffix: .html
  22. mybatis:
  23. configuration:
  24. map-underscore-to-camel-case: true
  25. mapper-locations: classpath:configs/mybatis/xml/*.xml #注意:一定要对应mapper映射xml文件的所在路径
  26. type-aliases-package: com.up.sell.vo # 注意:对应实体类的路径