|
@@ -1,19 +1,15 @@
|
|
|
spring:
|
|
spring:
|
|
|
datasource:
|
|
datasource:
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
- url: jdbc:mysql://${DB_HOST:prod-db-host}:${DB_PORT:3306}/${DB_NAME:poyee_order}?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
|
|
|
|
|
- username: ${DB_USERNAME}
|
|
|
|
|
- password: ${DB_PASSWORD}
|
|
|
|
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
|
|
+ url: jdbc:postgresql://${DB_HOST:192.168.50.8}:${DB_PORT:5432}/${DB_NAME:b2b_product}?currentSchema=public
|
|
|
|
|
+ username: ${DB_USERNAME:postgres}
|
|
|
|
|
+ password: ${DB_PASSWORD:123456}
|
|
|
druid:
|
|
druid:
|
|
|
- initial-size: ${DB_INITIAL_SIZE:20}
|
|
|
|
|
- min-idle: ${DB_MIN_IDLE:20}
|
|
|
|
|
- max-active: ${DB_MAX_ACTIVE:100}
|
|
|
|
|
- max-wait: ${DB_MAX_WAIT:30000}
|
|
|
|
|
- validation-query: ${DB_VALIDATION_QUERY:SELECT 1}
|
|
|
|
|
- test-on-borrow: ${DB_TEST_ON_BORROW:true}
|
|
|
|
|
- test-while-idle: ${DB_TEST_WHILE_IDLE:true}
|
|
|
|
|
- time-between-eviction-runs-millis: ${DB_EVICTION_INTERVAL:60000}
|
|
|
|
|
|
|
+ initial-size: ${DB_INITIAL_SIZE:5}
|
|
|
|
|
+ min-idle: ${DB_MIN_IDLE:5}
|
|
|
|
|
+ max-active: ${DB_MAX_ACTIVE:20}
|
|
|
|
|
+ max-wait: ${DB_MAX_WAIT:60000}
|
|
|
redis:
|
|
redis:
|
|
|
database: ${REDIS_DATABASE:1}
|
|
database: ${REDIS_DATABASE:1}
|
|
|
password: ${REDIS_PASSWORD:Pass2010}
|
|
password: ${REDIS_PASSWORD:Pass2010}
|
|
@@ -24,23 +20,20 @@ spring:
|
|
|
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
max-idle: 10 # 连接池中的最大空闲连接
|
|
max-idle: 10 # 连接池中的最大空闲连接
|
|
|
min-idle: 5 # 连接池中的最小空闲连接
|
|
min-idle: 5 # 连接池中的最小空闲连接
|
|
|
-swagger:
|
|
|
|
|
- enabled: ${SWAGGER_ENABLED:false}
|
|
|
|
|
|
|
|
|
|
management:
|
|
management:
|
|
|
endpoints:
|
|
endpoints:
|
|
|
web:
|
|
web:
|
|
|
exposure:
|
|
exposure:
|
|
|
- include: health,info
|
|
|
|
|
|
|
+ include: health,info,metrics
|
|
|
endpoint:
|
|
endpoint:
|
|
|
health:
|
|
health:
|
|
|
- show-details: never
|
|
|
|
|
|
|
+ show-details: always
|
|
|
|
|
|
|
|
logging:
|
|
logging:
|
|
|
level:
|
|
level:
|
|
|
- com.poyee: warn
|
|
|
|
|
- com.baomidou.mybatisplus: warn
|
|
|
|
|
-
|
|
|
|
|
|
|
+ com.poyee: debug
|
|
|
|
|
+ com.baomidou.mybatisplus: debug
|
|
|
feign:
|
|
feign:
|
|
|
client:
|
|
client:
|
|
|
checklist:
|
|
checklist:
|
|
@@ -48,4 +41,4 @@ feign:
|
|
|
order:
|
|
order:
|
|
|
url: ${ORDER_URL:http://localhost:8081}
|
|
url: ${ORDER_URL:http://localhost:8081}
|
|
|
dict:
|
|
dict:
|
|
|
- url: ${DICT_URL:http://localhost:8082}
|
|
|
|
|
|
|
+ url: ${DICT_URL:http://localhost:10012}
|