application.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. server:
  2. port: 8080
  3. spring:
  4. profiles:
  5. active: dev
  6. main:
  7. allow-circular-references: true
  8. datasource:
  9. druid:
  10. driver-class-name: ${sky.datasource.driver-class-name}
  11. url: jdbc:mysql://${sky.datasource.host}:${sky.datasource.port}/${sky.datasource.database}?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
  12. username: ${sky.datasource.username}
  13. password: ${sky.datasource.password}
  14. mybatis:
  15. #mapper配置文件
  16. mapper-locations: classpath:mapper/*.xml
  17. type-aliases-package: com.sky.entity
  18. configuration:
  19. #开启驼峰命名
  20. map-underscore-to-camel-case: true
  21. logging:
  22. level:
  23. com:
  24. sky:
  25. mapper: debug
  26. service: info
  27. controller: info
  28. sky:
  29. jwt:
  30. # 设置jwt签名加密时使用的秘钥
  31. admin-secret-key: itcast
  32. # 设置jwt过期时间
  33. admin-ttl: 43200000
  34. # 设置前端传递过来的令牌名称
  35. admin-token-name: token