csc-szls-system-manage-dev.yml 3.1 KB

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