application-pro.properties 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. server.port=21883
  2. spring.application.name=org-service
  3. spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
  4. spring.jackson.time-zone=GMT+8
  5. ## upload files setting
  6. spring.http.multipart.maxFileSize=10Mb
  7. spring.http.multipart.maxRequestSize=10Mb
  8. #img.location=/usr/home/images/
  9. #spring.mvc.static-path-pattern=/images/**
  10. #spring.resources.static-locations=file:${img.location}
  11. #mysql datasource setting
  12. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  13. spring.datasource.url=jdbc:mysql://47.111.224.169:3306/traced_source?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false&&allowMultiQueries=true
  14. #spring.datasource.url=jdbc:mysql://localhost:3306/food_security_db?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
  15. spring.datasource.username=trace
  16. spring.datasource.password=Admin123
  17. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  18. spring.datasource.initialSize=5
  19. spring.datasource.minIdle=5
  20. spring.datasource.maxActive=20
  21. spring.datasource.maxWait=60000
  22. spring.datasource.timeBetweenEvictionRunsMillis=60000
  23. spring.datasource.minEvictableIdleTimeMillis=30000
  24. spring.datasource.validationQuery=SELECT 1
  25. spring.datasource.testWhileIdle=true
  26. spring.datasource.testOnBorrow=false
  27. spring.datasource.testOnReturn=false
  28. spring.datasource.poolPreparedStatements=true
  29. spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
  30. spring.datasource.filters=stat,wall
  31. spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=3000
  32. #mybatis setting
  33. mybatis.type-aliases-package=com.hcloud.microserver.org.facade.entity
  34. mybatis.mapper-locations=classpath:mappers/*.xml
  35. mybatis.check-config-location=true
  36. mybatis.executor-type=simple
  37. #pagehelper setting
  38. pagehelper.helperDialect=mysql
  39. pagehelper.reasonable=true
  40. pagehelper.supportMethodsArguments=true
  41. pagehelper.params=count=countSql
  42. # Max number of next servers to retry (excluding the first server)
  43. system-service.ribbon.MaxAutoRetriesNextServer=1
  44. # Whether all operations can be retried for this client
  45. system-service.ribbon.OkToRetryOnAllOperations=true
  46. # Interval to refresh the server list from the source
  47. system-service.ribbon.ServerListRefreshInterval=2000
  48. # Connect timeout used by Apache HttpClient
  49. system-service.ribbon.ConnectTimeout=50000
  50. # Read timeout used by Apache HttpClient
  51. system-service.ribbon.ReadTimeout=50000
  52. #hystix timeout setting
  53. feign.hystrix.enabled=true
  54. #feign调用默认是1000毫秒=1秒 应该设置成更长时间1000 * 60 * 5 = 5分钟 add by six-vision
  55. hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=300000
  56. hystrix.command.default.circuitBreaker.sleepWindowInMilliseconds=300000
  57. hystrix.command.default.circuitBreaker.forceClosed=true
  58. #hystrix.command.default.execution.timeout.enabled=false
  59. #请求处理的超时时间 add by six-vision
  60. ribbon.ReadTimeout=300000
  61. ribbon.SocketTimeout=300000
  62. #请求连接的超时时间 add by six-vision
  63. ribbon.ConnectTimeout=30000
  64. # eureka setting
  65. eureka.instance.hostname=localhost
  66. eureka.client.service-url.defaultZone=http://127.0.0.1:8761/eureka/
  67. ###redis配置#########
  68. spring.redis.database=0
  69. spring.redis.host=127.0.0.1
  70. spring.redis.port=6379
  71. spring.redis.pool.max-idle=8
  72. spring.redis.pool.min-idle=0
  73. spring.redis.pool.max-active=10
  74. spring.redis.pool.max-wait=-1
  75. spring.redis.timeout=5000
  76. #wechat setting
  77. #(一个公众号的appid)
  78. #wx.mp.configs.appId=wx04d471b59982c6ad
  79. #(公众号的appsecret)
  80. #wx.mp.configs.secret=bd9279851f63af0c67e8bc1ef7e27257
  81. #(接口配置里的Token值)
  82. #wx.mp.configs.token=123
  83. #(接口配置里的EncodingAESKey值)
  84. #wx.mp.configs.aesKey=123
  85. #统一登录认证
  86. xxl.sso.redis.database=4
  87. xxl.sso.redis.host=172.16.90.201
  88. xxl.sso.redis.port=6379
  89. xxl.sso.redis.password=
  90. xxl.sso.server: https://sso.hw.hongweisoft.com/