application.yml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. spring:
  2. application:
  3. name: admin
  4. datasource:
  5. druid: #以下是全局默认值,可以全局更改
  6. #监控统计拦截的filters
  7. filters: stat,slf4j
  8. #配置初始化大小/最小/最大
  9. initial-size: 2
  10. min-idle: 2
  11. max-active: 20
  12. #获取连接等待超时时间
  13. max-wait: 60000
  14. #间隔多久进行一次检测,检测需要关闭的空闲连接
  15. time-between-eviction-runs-millis: 60000
  16. #一个连接在池中最小生存的时间
  17. min-evictable-idle-time-millis: 300000
  18. validation-query: SELECT 'x'
  19. test-while-idle: true
  20. test-on-borrow: false
  21. test-on-return: false
  22. #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
  23. pool-prepared-statements: false
  24. max-pool-prepared-statement-per-connection-size: 20
  25. dynamic:
  26. primary: db-admin
  27. strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
  28. datasource:
  29. db-admin:
  30. url: jdbc:mysql://121.40.98.15:3307/charge_admin
  31. username: root
  32. password: 123456
  33. driver-class-name: com.mysql.cj.jdbc.Driver
  34. db-miniapp:
  35. url: jdbc:mysql://121.40.98.15:3307/charge_app
  36. username: root
  37. password: 123456
  38. driver-class-name: com.mysql.cj.jdbc.Driver
  39. main:
  40. allow-circular-references: true
  41. #mybatis:
  42. # mapper-locations: classpath:mappers/*.xml
  43. # type-aliases-package: com.kym.charge.entity
  44. # configuration:
  45. # map-underscore-to-camel-case: true #下划线转驼峰
  46. server:
  47. port: 9000
  48. # PageHelper
  49. pagehelper:
  50. propertyName: propertyValue
  51. reasonable: false
  52. defaultCount: true # 分页插件默认参数支持 default-count 形式,自定义扩展的参数,必须大小写一致
  53. mybatis-plus:
  54. mapper-locations: classpath:mappers/admin/*.xml
  55. type-aliases-package: com.kym.entity.admin
  56. sa-token:
  57. # jwt秘钥
  58. jwt-secret-key: 12345678
  59. # token 名称(同时也是 cookie 名称)
  60. token-name: satoken
  61. # token 有效期(单位:秒) 默认30分钟,-1 代表永久有效
  62. timeout: 1800
  63. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  64. active-timeout: -1
  65. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  66. is-concurrent: true
  67. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  68. is-share: true
  69. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  70. token-style: uuid
  71. # 是否输出操作日志
  72. is-log: true
  73. # EN+充电配置
  74. en-plus:
  75. # 运营商ID
  76. operator-id: MA5HJNDG1
  77. # 运营商密钥
  78. operator-secret: c7fd9b753a9f434e
  79. # 消息密钥
  80. data-secret: 5cb7e12da198420a
  81. # 消息密钥初始化向量
  82. data-secret-iv: 8a6ac88326bc4d3f
  83. # 签名密钥
  84. sig-secret: 2365b20f69e44817
  85. # 最小充电余额(分)
  86. charge-min-amount: 200