You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.7 KiB
106 lines
2.7 KiB
server:
|
|
port: 6002
|
|
servlet:
|
|
context-path: /dating-agency-mall
|
|
|
|
spring:
|
|
application:
|
|
name: eureka-client-dating-agency-mall
|
|
description: 商城
|
|
api-doc-enabled: ${swagger-on:true}
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
name: ${mysql-database-name}
|
|
url: jdbc:mysql://${mysql-database-url}/${mysql-database-name}?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useTimezone=true&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true
|
|
username: ${mysql-user-name}
|
|
password: ${mysql-user-password}
|
|
hikari:
|
|
minimum-idle: 3
|
|
maximum-pool-size: 10
|
|
max-lifetime: 30000
|
|
connection-test-query: SELECT 1
|
|
redis:
|
|
database: ${redis-database-index:0}
|
|
host: ${redis-host}
|
|
port: ${redis-port:6379}
|
|
password: ${redis-password}
|
|
timeout: 3000
|
|
lettuce:
|
|
pool:
|
|
max-active: 200
|
|
max-idle: 20
|
|
min-idle: 10
|
|
max-wait: -1
|
|
servlet:
|
|
multipart:
|
|
enabled: true
|
|
max-file-size: 100MB
|
|
max-request-size: 105MB
|
|
rabbitmq:
|
|
virtual-host: ${rabbitmq-virtual-host:/}
|
|
host: ${rabbitmq-host}
|
|
port: ${rabbitmq-port:5672}
|
|
username: ${rabbitmq-username}
|
|
password: ${rabbitmq-password}
|
|
listener:
|
|
simple:
|
|
retry:
|
|
enabled: true
|
|
max-attempts: 3
|
|
initial-interval: 1000
|
|
default-requeue-rejected: false
|
|
|
|
mybatis:
|
|
mapper-locations: classpath:mapping/*Mapper.xml
|
|
type-aliases-package: com.qniao.**.entity
|
|
|
|
# mybatis-plus配置控制台打印完整带参数SQL语句
|
|
mybatis-plus:
|
|
global-config:
|
|
db-config:
|
|
table-prefix: qn_
|
|
logic-delete-field: isDelete # 全局逻辑删除的实体字段名
|
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
|
type-enums-package: com.qniao.**.constant
|
|
configuration:
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
eureka:
|
|
client:
|
|
register-with-eureka: true
|
|
fetch-registry: ${eureka-enable:true}
|
|
service-url:
|
|
defaultZone: http://${register-eureka-url}/eureka/
|
|
instance:
|
|
prefer-ip-address: true
|
|
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port}
|
|
lease-expiration-duration-in-seconds: 15
|
|
lease-renewal-interval-in-seconds: 5
|
|
|
|
feign:
|
|
hystrix:
|
|
enabled: false
|
|
client:
|
|
config:
|
|
default:
|
|
connectTimeout: 10000
|
|
readTimeout: 60000
|
|
|
|
# DefaultClientConfigImpl
|
|
ribbon:
|
|
ConnectTimeout: 8000
|
|
ReadTimeout: 20000
|
|
|
|
# apollo
|
|
app:
|
|
id: dating-agency-mall
|
|
|
|
snow-flake:
|
|
datacenter-id: 1
|
|
machine-id: 1
|
|
|
|
ding-talk-alarm-robot-access-token: 1
|
|
|
|
logging:
|
|
config: classpath:logback.xml
|