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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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: 180000 # 空闲连接存活最大时间,默认600000(10分钟)
  38. maximum-pool-size: 50 #连接池最大连接数,默认是10
  39. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  40. pool-name: MyHikariCP #连接池母子
  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. hystrix:
  66. enabled: true
  67. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  68. management:
  69. endpoints:
  70. web:
  71. exposure:
  72. include: '*'
  73. # 2.0开始,actuator默认不开放,所以要设置为开发
  74. endpoint:
  75. health:
  76. show-details: ALWAYS
  77. my-config:
  78. isUseSecurity: true #是否使用security权限
  79. projectCode: csc-szls-system-manage #项目编码
  80. clientId: client_csc_szls_system_manage #客户端id
  81. minio:
  82. endpoint: http://${hostname}:9998 #图片服务器访问地址
  83. accesskey: minioAdmin #账号
  84. secretkey: minioAdmin1 #密码
  85. testdemo: to6666666666666999999999