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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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: 123456
  34. url: jdbc:mysql://101.36.160.140:10311/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  35. # 配置rabbitmq的地址以及用户密码
  36. rabbitmq:
  37. host: ${hostname}
  38. port: 5672
  39. username: admin
  40. password: admin
  41. mybatis:
  42. mapper-locations: classpath:/mapper/*Mapper.xml
  43. # 配置mybatis-plus
  44. mybatis-plus:
  45. # 配置扫描xml
  46. mapper-locations: classpath:/mapper/*Mapper.xml
  47. # 实体扫描,多个package用逗号或者分号分隔
  48. type-aliases-package: com.unissoft.model
  49. ribbon:
  50. ReadTimeout: 10000
  51. ConnectTimeout: 10000
  52. MaxAutoRetries: 1
  53. MaxAutoRetriesNextServer: 2
  54. #熔断器开启
  55. feign:
  56. hystrix:
  57. enabled: true
  58. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  59. management:
  60. endpoints:
  61. web:
  62. exposure:
  63. include: '*'
  64. # 2.0开始,actuator默认不开放,所以要设置为开发
  65. endpoint:
  66. health:
  67. show-details: ALWAYS
  68. my-config:
  69. isUseSecurity: true #是否使用security权限
  70. projectCode: csc-szls-system-manage #项目编码
  71. clientId: client_csc_szls_system_manage #客户端id
  72. minio:
  73. endpoint: http://${hostname}:9998 #图片服务器访问地址
  74. accesskey: minioAdmin #账号
  75. secretkey: minioAdmin1 #密码
  76. server-config:
  77. # serverHttp: http://localhost:9601/
  78. serverHttp: http://172.16.0.2:9601/
  79. serverNames: csc-szls-business,csc-szls-message
  80. serverUrl: /public/loadResourceDefine
  81. oauthUrl: http://172.16.0.2:9601/csc-szls-oauth/oauth/token
  82. testdemo: to6666666666666999999999