application.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: 123.56.196.46:9300
  42. repositories:
  43. enabled: true
  44. local: false
  45. elasticsearch:
  46. rest:
  47. uris: ["http://123.56.196.46:9200"]
  48. # redis配置
  49. redis:
  50. ################### redis 单机版 ##########################
  51. host: ${REDIS_IP:123.56.196.46}
  52. port: ${REDIS_PORT:6379}
  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. com.poteviohealth.cgp.integration.mapper: DEBUG
  71. common:
  72. localImage:
  73. dir: /opt/soft/panjin/product/image/
  74. uri: https://test.poteviohealth.com/cgpimage/
  75. #wechat:
  76. # api:
  77. # auth: https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={js_code}&grant_type={grant_type}