application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # server basic config
  2. server:
  3. port: 12011
  4. servlet:
  5. context-path: /
  6. # eureka server connect config
  7. eureka:
  8. client:
  9. service-url:
  10. defaultZone: http://127.0.0.1:8760/eureka/
  11. register-with-eureka: true
  12. #fetch-registry: false
  13. spring:
  14. # 安全配置,请以实际方式代替
  15. security:
  16. user:
  17. name: admin
  18. password: admin
  19. application:
  20. # 请保持和POM GAV一致
  21. name: cgp-integration
  22. #database operation config
  23. datasource:
  24. type: com.alibaba.druid.pool.DruidDataSource
  25. druid:
  26. database:
  27. jdbc-url: jdbc:mysql://123.56.196.46:3306/cgp_integration?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
  28. username: cgp
  29. password: jd0709
  30. filter: stat
  31. max-active: 100
  32. initial-size: 5
  33. max-wait: 60000
  34. min-idle: 1
  35. validation-query: SELECT 1
  36. test-while-idle: true
  37. driver-class-name: com.mysql.cj.jdbc.Driver
  38. data:
  39. elasticsearch:
  40. cluster-name: my-application
  41. cluster-nodes: 101.201.117.73:9300
  42. repositories:
  43. enabled: true
  44. local: false
  45. elasticsearch:
  46. rest:
  47. uris: ["http://101.201.117.73:9200"]
  48. # redis配置
  49. redis:
  50. ################### redis 单机版 ##########################
  51. host: ${REDIS_IP:101.201.117.73}
  52. port: ${REDIS_PORT:16379}
  53. database: ${REDIS_DB:1}
  54. password: ${REDIS_PASSWORD:}
  55. # 使用jedis连接池
  56. jedis:
  57. pool:
  58. max-active: 8
  59. max-wait: -1
  60. max-idle: 8
  61. min-idle: 0
  62. timeout: 5000
  63. # mybatis config
  64. mybatis-plus:
  65. config-location: classpath:mybatis-config.xml
  66. mapper-locations: classpath:mapper/integration/*.xml
  67. # Logger
  68. logging:
  69. config: classpath:logback-spring.xml
  70. common:
  71. localImage:
  72. dir: e:/temp/image/
  73. uri: http://localhost:8080/image/
  74. #wechat:
  75. # api:
  76. # auth: https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={js_code}&grant_type={grant_type}