csc-szls-oauth-dev.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. hostname: 172.16.0.2 #地址
  2. spring:
  3. boot:
  4. admin:
  5. client:
  6. url: "http://${hostname}:9610"
  7. password: password
  8. username: user
  9. instance:
  10. prefer-ip: true
  11. redis:
  12. database: 0 #Redis数据库索引(默认为0)
  13. timeout: 5000ms # 连接超时时间(毫秒)
  14. host: ${hostname}
  15. port: 6679
  16. password: 123456 # Redis服务器连接密码(默认为空)
  17. jedis:
  18. pool:
  19. max-active: 8 # 连接池中的最大连接
  20. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  21. max-idle: 8 # 连接池中的最大空闲连接
  22. min-idle: 0 # 连接池中的最小空闲连接
  23. datasource:
  24. driver-class-name: com.mysql.jdbc.Driver
  25. username: root
  26. password: 1qaz@WSX
  27. url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  28. hikari:
  29. minimum-idle: 5 #最小空闲连接数量
  30. idle-timeout: 300000 # 空闲连接存活最大时间,默认600000(10分钟)
  31. maximum-pool-size: 50 #连接池最大连接数,默认是10
  32. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  33. pool-name: MyHikariCP9601 #连接池母子
  34. max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  35. connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
  36. connection-test-query: SELECT 1
  37. # 配置rabbitmq的地址以及用户密码
  38. rabbitmq:
  39. host: ${hostname}
  40. port: 5672
  41. username: admin
  42. password: admin
  43. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  44. management:
  45. endpoints:
  46. web:
  47. exposure:
  48. include: '*'
  49. # 2.0开始,actuator默认不开放,所以要设置为开发
  50. endpoint:
  51. health:
  52. show-details: ALWAYS
  53. #熔断器开启
  54. feign:
  55. client:
  56. config:
  57. default:
  58. connect-timeout: 9000
  59. read-timeout: 9000
  60. hystrix:
  61. enabled: true
  62. hystrix:
  63. command:
  64. default:
  65. execution:
  66. isolation:
  67. thread:
  68. timeoutInMilliseconds: 9000
  69. mybatis:
  70. mapper-locations: classpath:/mapper/*Mapper.xml
  71. my-config:
  72. clientId: client_oauth
  73. logging:
  74. level:
  75. com.unissoft.mapper: DEBUG #包路径为mapper文件包路径