application.yml 523 B

123456789101112131415161718192021222324252627
  1. # 配置tomcat端口号
  2. server:
  3. port: 8080
  4. # 配置数据源
  5. spring:
  6. datasource:
  7. driverClassName: com.mysql.jdbc.Driver
  8. url: jdbc:mysql://localhost:3306/xxx_db
  9. username: root
  10. password: root
  11. # 配置mybatis
  12. mybatis:
  13. # 配置类型别名包扫描
  14. type-aliases-package: com.xxx.xxx.pojo
  15. # 配置sql语句映射文件路径
  16. mapper-locations:
  17. - classpath:mappers/*.xml
  18. # 驼峰映射
  19. configuration:
  20. map-underscore-to-camel-case: true
  21. # 配置日志
  22. logging:
  23. level:
  24. com.xxx: debug