application.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. server:
  2. port: 8089
  3. spring:
  4. datasource:
  5. type: com.alibaba.druid.pool.DruidDataSource
  6. druid:
  7. driver-class-name: com.mysql.cj.jdbc.Driver
  8. url: jdbc:mysql://localhost:3306/testjdbc?useSSL=false&allowPublicKeyRetrieval=true&serverTimeZone=UTC
  9. username: root
  10. password: colin123
  11. max-wait: 3000
  12. initial-size: 10
  13. max-active: 200
  14. mybatis:
  15. mapper-locations: classpath:mapper/*.xml
  16. configuration:
  17. # 开启驼峰映射
  18. map-underscore-to-camel-case: true
  19. sa-token:
  20. # token 名称(同时也是 cookie 名称)
  21. token-name: satoken
  22. # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  23. timeout: 2592000
  24. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  25. active-timeout: -1
  26. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  27. is-concurrent: true
  28. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  29. is-share: true
  30. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  31. token-style: uuid
  32. # 是否输出操作日志
  33. is-log: true
  34. knife4j:
  35. enable: true