csc-szls-business-dev.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. # 配置rabbitmq的地址以及用户密码
  30. rabbitmq:
  31. host: ${hostname}
  32. port: 5672
  33. username: admin
  34. password: admin
  35. mybatis:
  36. mapper-locations: classpath:/mapper/*Mapper.xml
  37. # 配置mybatis-plus
  38. mybatis-plus:
  39. # 配置扫描xml
  40. mapper-locations: classpath:/mapper/*Mapper.xml
  41. # 实体扫描,多个package用逗号或者分号分隔
  42. type-aliases-package: com.unissoft.model
  43. ribbon:
  44. ReadTimeout: 10000
  45. ConnectTimeout: 10000
  46. MaxAutoRetries: 1
  47. MaxAutoRetriesNextServer: 2
  48. #熔断器开启
  49. feign:
  50. hystrix:
  51. enabled: true
  52. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  53. management:
  54. endpoints:
  55. web:
  56. exposure:
  57. include: '*'
  58. # 2.0开始,actuator默认不开放,所以要设置为开发
  59. endpoint:
  60. health:
  61. show-details: ALWAYS
  62. my-config:
  63. isUseSecurity: true #是否使用security权限
  64. projectCode: csc_szls_business #项目编码
  65. clientId: client_csc_szls_business #客户端id
  66. minio:
  67. endpoint: http://${hostname}:9998 #图片服务器访问地址
  68. accesskey: minioAdmin #账号
  69. secretkey: minioAdmin1 #密码