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