# server basic config server: port: 12011 servlet: context-path: / # eureka server connect config eureka: client: service-url: defaultZone: http://127.0.0.1:8760/eureka/ register-with-eureka: true #fetch-registry: false spring: # 安全配置,请以实际方式代替 security: user: name: admin password: admin application: # 请保持和POM GAV一致 name: cgp-integration #database operation config datasource: type: com.alibaba.druid.pool.DruidDataSource druid: database: jdbc-url: jdbc:mysql://123.56.196.46:3306/cgp_integration?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 username: cgp password: jd0709 filter: stat max-active: 100 initial-size: 5 max-wait: 60000 min-idle: 1 validation-query: SELECT 1 test-while-idle: true driver-class-name: com.mysql.cj.jdbc.Driver data: elasticsearch: cluster-name: my-application cluster-nodes: 123.56.196.46:9300 repositories: enabled: true local: false elasticsearch: rest: uris: ["http://123.56.196.46:9200"] # redis配置 redis: ################### redis 单机版 ########################## host: ${REDIS_IP:123.56.196.46} port: ${REDIS_PORT:6379} database: ${REDIS_DB:1} password: ${REDIS_PASSWORD:} # 使用jedis连接池 jedis: pool: max-active: 8 max-wait: -1 max-idle: 8 min-idle: 0 timeout: 5000 # mybatis config mybatis-plus: config-location: classpath:mybatis-config.xml mapper-locations: classpath:mapper/integration/*.xml # Logger logging: config: classpath:logback-spring.xml com.poteviohealth.cgp.integration.mapper: DEBUG common: localImage: dir: /opt/soft/panjin/product/image/ uri: https://test.poteviohealth.com/cgpimage/ #wechat: # api: # auth: https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={js_code}&grant_type={grant_type}