拓恒统一认证授权服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.6KB

  1. spring:
  2. # 注册中心consul地址
  3. cloud:
  4. consul:
  5. host: 127.0.0.1 # consul 所在服务地址
  6. port: 8500 # consul 服务端口
  7. discovery:
  8. ## consul ip地址
  9. hostname: 127.0.0.1
  10. # 注册到consul的服务名称
  11. service-name: ${spring.application.name} # 服务提供者名称
  12. instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} #实例ID
  13. heartbeat:
  14. enabled: true
  15. prefer-ip-address: true
  16. health-check-path: /actuator/health #健康检查
  17. health-check-interval: 10s
  18. # 配置数据源
  19. datasource:
  20. # 使用阿里的Druid连接池
  21. type: com.alibaba.druid.pool.DruidDataSource
  22. driver-class-name: com.mysql.cj.jdbc.Driver
  23. # 填写你数据库的url、登录名、密码和数据库名
  24. url: jdbc:mysql://192.168.11.13:3306/tuoheng_oidc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false
  25. username: root
  26. password: idontcare
  27. druid:
  28. # 连接池的配置信息
  29. # 初始连接数
  30. initialSize: 5
  31. # 最小连接池数量
  32. minIdle: 5
  33. # 最大连接池数量
  34. maxActive: 20
  35. # 配置获取连接等待超时的时间
  36. maxWait: 60000
  37. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  38. timeBetweenEvictionRunsMillis: 60000
  39. # 配置一个连接在池中最小生存的时间,单位是毫秒
  40. minEvictableIdleTimeMillis: 300000
  41. # 配置一个连接在池中最大生存的时间,单位是毫秒
  42. maxEvictableIdleTimeMillis: 900000
  43. # 配置检测连接是否有效
  44. validationQuery: SELECT 1 FROM DUAL
  45. testWhileIdle: true
  46. testOnBorrow: false
  47. testOnReturn: false
  48. # Redis数据源
  49. redis:
  50. # 缓存库默认索引0
  51. database: 0
  52. # Redis服务器地址
  53. host: 192.168.11.13
  54. # Redis服务器连接端口
  55. port: 6379
  56. # Redis服务器连接密码(默认为空)
  57. password:
  58. # 连接超时时间(毫秒)
  59. timeout: 6000
  60. # 默认的数据过期时间,主要用于shiro权限管理
  61. expire: 2592000
  62. jedis:
  63. pool:
  64. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  65. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  66. max-idle: 10 # 连接池中的最大空闲连接
  67. min-idle: 1 # 连接池中的最小空闲连接
  68. # 自定义配置
  69. tuoheng:
  70. #airport配置地址
  71. airport-url: http://192.168.11.22:8060