csc-szls-business-dev.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: 300000 # 空闲连接存活最大时间,默认600000(10分钟)
  32. maximum-pool-size: 50 #连接池最大连接数,默认是10
  33. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  34. pool-name: MyHikariCP9604 #连接池母子
  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. client:
  60. config:
  61. default:
  62. connect-timeout: 9000
  63. read-timeout: 9000
  64. hystrix:
  65. enabled: true
  66. hystrix:
  67. command:
  68. default:
  69. execution:
  70. isolation:
  71. thread:
  72. timeoutInMilliseconds: 9000
  73. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  74. management:
  75. endpoints:
  76. web:
  77. exposure:
  78. include: '*'
  79. # 2.0开始,actuator默认不开放,所以要设置为开发
  80. endpoint:
  81. health:
  82. show-details: ALWAYS
  83. my-config:
  84. isUseSecurity: true #是否使用security权限
  85. projectCode: csc_szls_business #项目编码
  86. clientId: client_csc_szls_business #客户端id
  87. minio:
  88. endpoint: http://${hostname}:9998 #图片服务器访问地址
  89. accesskey: minioAdmin #账号
  90. secretkey: minioAdmin1 #密码