application-dev.properties 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. server.port=21884
  2. spring.application.name=bank-service
  3. spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
  4. spring.jackson.time-zone=GMT+8
  5. #mysql datasource setting
  6. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  7. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  8. spring.datasource.url=jdbc:mysql://172.16.90.253:3306/cq-carbon-platform?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false&&allowMultiQueries=true
  9. #spring.datasource.url=jdbc:mysql://192.168.1.52:3306/carbon-platform?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=true&&allowMultiQueries=true
  10. spring.datasource.username=root
  11. spring.datasource.password=123456
  12. #spring.datasource.password=root
  13. spring.datasource.initialSize=5
  14. spring.datasource.minIdle=5
  15. spring.datasource.maxActive=20
  16. spring.datasource.maxWait=60000
  17. spring.datasource.timeBetweenEvictionRunsMillis=60000
  18. spring.datasource.minEvictableIdleTimeMillis=30000
  19. spring.datasource.validationQuery=SELECT 1
  20. spring.datasource.testWhileIdle=true
  21. spring.datasource.testOnBorrow=false
  22. spring.datasource.testOnReturn=false
  23. spring.datasource.poolPreparedStatements=true
  24. spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
  25. spring.datasource.filters=stat,wall
  26. spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=2000
  27. #mybatis setting
  28. mybatis.type-aliases-package=com.hcloud.microserver.sys.facade.entity
  29. mybatis.mapper-locations=classpath:mappers/*.xml
  30. mybatis.check-config-location=true
  31. mybatis.executor-type=simple
  32. #pagehelper setting
  33. pagehelper.helperDialect=mysql
  34. pagehelper.reasonable=true
  35. pagehelper.supportMethodsArguments=true
  36. pagehelper.params=count=countSql
  37. # Max number of retries on the same server (excluding the first try)
  38. system-service.ribbon.MaxAutoRetries=1
  39. # Max number of next servers to retry (excluding the first server)
  40. system-service.ribbon.MaxAutoRetriesNextServer=1
  41. # Whether all operations can be retried for this client
  42. system-service.ribbon.OkToRetryOnAllOperations=true
  43. # Interval to refresh the server list from the source
  44. system-service.ribbon.ServerListRefreshInterval=2000
  45. # Connect timeout used by Apache HttpClient
  46. system-service.ribbon.ConnectTimeout=50000
  47. # Read timeout used by Apache HttpClient
  48. system-service.ribbon.ReadTimeout=50000
  49. #zuul timeout setting
  50. zuul.host.connect-timeout-millis=10000
  51. zuul.host.socket-timeout-millis=10000
  52. #hystix timeout setting
  53. hystrix.metrics.enabled=true
  54. hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000
  55. # eureka setting
  56. eureka.instance.preferIpAddress=true
  57. eureka.instance.hostname=localhost
  58. #eureka.client.service-url.defaultZone=http://192.168.1.58:8761/eureka/
  59. eureka.client.service-url.defaultZone=http://127.0.0.1:8761/eureka/
  60. ###redis配置#########
  61. spring.redis.database=0
  62. spring.redis.host=172.16.90.64
  63. #spring.redis.host=192.168.56.101
  64. spring.redis.port=6379
  65. spring.redis.pool.max-idle=8
  66. spring.redis.pool.min-idle=0
  67. spring.redis.pool.max-active=10
  68. spring.redis.pool.max-wait=-1
  69. spring.redis.timeout=5000
  70. cqrcb.bank.sign.ip=172.16.90.102
  71. cqrcb.bank.sign.port=8853
  72. cqrcb.bank.sslclient.ip=172.16.90.102
  73. cqrcb.bank.sslclient.port=8852
  74. spring.jackson.default-property-inclusion=non_null