application.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # server basic config
  2. server:
  3. port: 12010
  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. url: jdbc:mysql://123.56.196.46:3306/cgp_integration?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
  27. username: cgp
  28. password: jd0709
  29. filter: stat
  30. max-active: 100
  31. initial-size: 5
  32. max-wait: 60000
  33. min-idle: 1
  34. validation-query: SELECT 1
  35. test-while-idle: true
  36. driver-class-name: com.mysql.cj.jdbc.Driver
  37. data:
  38. elasticsearch:
  39. cluster-name: my-application
  40. cluster-nodes: 101.201.117.73:9300
  41. repositories:
  42. enabled: true
  43. local: false
  44. elasticsearch:
  45. rest:
  46. uris: ["http://101.201.117.73:9200"]
  47. # redis配置
  48. redis:
  49. ################### redis 单机版 ##########################
  50. host: ${REDIS_IP:101.201.117.73}
  51. port: ${REDIS_PORT:16379}
  52. database: ${REDIS_DB:1}
  53. password: ${REDIS_PASSWORD:}
  54. # 使用jedis连接池
  55. jedis:
  56. pool:
  57. max-active: 8
  58. max-wait: -1
  59. max-idle: 8
  60. min-idle: 0
  61. timeout: 5000
  62. # mybatis config
  63. mybatis-plus:
  64. config-location: classpath:mybatis-config.xml
  65. mapper-locations: classpath:mapper/integration/*.xml
  66. # Logger
  67. logging:
  68. config: classpath:logback-spring.xml
  69. common:
  70. localImage:
  71. dir: e:/temp/image/
  72. uri: http://localhost:8080/image/
  73. #wechat:
  74. # api:
  75. # auth: https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={js_code}&grant_type={grant_type}