application.yml 730 B

12345678910111213141516171819202122
  1. server:
  2. port: 80
  3. spring:
  4. application:
  5. #应用的名称,可选
  6. name: waimai
  7. datasource:
  8. druid:
  9. driver-class-name: com.mysql.cj.jdbc.Driver
  10. url: jdbc:mysql://localhost:3306/waimai?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
  11. username: root
  12. password: root
  13. mybatis-plus:
  14. configuration:
  15. #在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
  16. map-underscore-to-camel-case: true
  17. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  18. global-config:
  19. db-config:
  20. id-type: ASSIGN_ID
  21. reggie:
  22. path: D:\img\