application.properties 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. server.port=94
  2. logging.config=classpath:zlogback.xml
  3. mybatis.mapper-locations = classpath:mappers/*/*.xml
  4. mybatis.type-aliases-package = com.inter.beans
  5. mybatis.config-location = classpath:/mybatis-config.xml
  6. spring.datasource.primary.type=com.alibaba.druid.pool.DruidDataSource
  7. spring.datasource.primary.driver-class-name=com.mysql.jdbc.Driver
  8. spring.datasource.primary.username = XdLGF3mJE0I5lu9PjoKjsg==
  9. spring.datasource.primary.password = +QlNYzTklPdli3u64zVdOSX9j7RVTZSh
  10. spring.datasource.primary.url=jdbc:mysql://47.111.67.16:3307/cbkj_interface?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
  11. spring.datasource.slave.names=slave1
  12. ###1
  13. spring.datasource.slave1.type=com.alibaba.druid.pool.DruidDataSource
  14. spring.datasource.slave1.driver-class-name=com.mysql.jdbc.Driver
  15. spring.datasource.slave1.username = XdLGF3mJE0I5lu9PjoKjsg==
  16. spring.datasource.slave1.password = +QlNYzTklPdli3u64zVdOSX9j7RVTZSh
  17. spring.datasource.slave1.url=jdbc:mysql://47.111.67.16:3307/cbkj_web_api?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
  18. #2
  19. #spring.datasource.slave2.type=com.alibaba.druid.pool.DruidDataSource
  20. #spring.datasource.slave2.driver-class-name=com.mysql.jdbc.Driver
  21. #spring.datasource.slave2.username=root
  22. #spring.datasource.slave2.password=123456
  23. #spring.datasource.slave2.url=jdbc:mysql://172.20.236.126:3306/cbkj_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  24. spring.datasource.common=yes
  25. spring.datasource.common.initialSize=1
  26. spring.datasource.common.minIdle=5
  27. spring.datasource.common.maxActive=50
  28. spring.datasource.common.maxWait=60000
  29. spring.datasource.common.timeBetweenEvictionRunsMillis=60000
  30. spring.datasource.common.minEvictableIdleTimeMillis=300000
  31. spring.datasource.common.validationQuery=SELECT 1 FROM DUAL
  32. spring.datasource.common.testWhileIdle=true
  33. spring.datasource.common.testOnBorrow=false
  34. spring.datasource.common.testOnReturn=false
  35. spring.datasource.common.poolPreparedStatements=true
  36. spring.datasource.common.filters=stat, wall
  37. spring.datasource.common.maxPoolPreparedStatementPerConnectionSize=20
  38. spring.datasource.common.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
  39. spring.datasource.common.useGlobalDataSourceStat=true
  40. spring.datasource.common.removeAbandoned=true
  41. spring.datasource.common.removeAbandonedTimeout=300
  42. spring.datasource.common.logAbandoned=false
  43. root.encryptor.password = ::!qb#9467@
  44. ## redis����
  45. spring.redis.host = 192.168.2.80
  46. spring.redis.port = 6379
  47. spring.redis.password = cbkj123!@#