csc-szls-business-dev.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. # mysql配置
  24. datasource:
  25. driver-class-name: com.mysql.jdbc.Driver
  26. username: root
  27. password: 1qaz@WSX
  28. url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  29. hikari:
  30. minimum-idle: 5 #最小空闲连接数量
  31. idle-timeout: 180000 # 空闲连接存活最大时间,默认600000(10分钟)
  32. maximum-pool-size: 50 #连接池最大连接数,默认是10
  33. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  34. pool-name: MyHikariCP #连接池母子
  35. max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  36. connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
  37. connection-test-query: SELECT 1
  38. # 配置rabbitmq的地址以及用户密码
  39. rabbitmq:
  40. host: ${hostname}
  41. port: 5672
  42. username: admin
  43. password: admin
  44. mybatis:
  45. mapper-locations: classpath:/mapper/*Mapper.xml
  46. # 配置mybatis-plus
  47. mybatis-plus:
  48. # 配置扫描xml
  49. mapper-locations: classpath:/mapper/*Mapper.xml
  50. # 实体扫描,多个package用逗号或者分号分隔
  51. type-aliases-package: com.unissoft.model
  52. ribbon:
  53. ReadTimeout: 10000
  54. ConnectTimeout: 10000
  55. MaxAutoRetries: 1
  56. MaxAutoRetriesNextServer: 2
  57. #熔断器开启
  58. feign:
  59. hystrix:
  60. enabled: true
  61. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  62. management:
  63. endpoints:
  64. web:
  65. exposure:
  66. include: '*'
  67. # 2.0开始,actuator默认不开放,所以要设置为开发
  68. endpoint:
  69. health:
  70. show-details: ALWAYS
  71. my-config:
  72. isUseSecurity: true #是否使用security权限
  73. projectCode: csc_szls_business #项目编码
  74. clientId: client_csc_szls_business #客户端id
  75. minio:
  76. endpoint: http://${hostname}:9998 #图片服务器访问地址
  77. accesskey: minioAdmin #账号
  78. secretkey: minioAdmin1 #密码