1 Star 0 Fork 0

AmosWong/amos-mall-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
user-dev.yml 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
amoswong 提交于 2021-03-16 22:20 . update config
server:
port: 8085
spring:
application:
name: user-service
datasource:
url: jdbc:mysql://localhost:3306/leyou?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: xiaobiao.
hikari:
maximum-pool-size: 20
minimum-idle: 10
redis:
host: 127.0.0.1
rabbitmq:
host: 127.0.0.1
username: /leyou
password: leyou
virtual-host: /leyou
template:
retry:
enabled: true
max-interval: 210000ms
initial-interval: 10000ms
multiplier: 2
publisher-confirms: true
eureka:
client:
service-url:
defaultZone: http://127.0.0.1:10086/eureka
registry-fetch-interval-seconds: 5
instance:
instance-id: ${spring.application.name}:${server.port}
prefer-ip-address: true #当你获取host时,返回的不是主机名,而是ip
ip-address: 127.0.0.1
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 15
ribbon:
ConnectTimeout: 4000 # 连接超时时间(ms)
ReadTimeout: 2000 # 通信超时时间(ms)
OkToRetryOnAllOperations: true # 是否对所有操作重试
MaxAutoRetriesNextServer: 1 # 同一服务不同实例的重试次数
MaxAutoRetries: 1 # 同一实例的重试次数
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMillisecond: 10000 # 熔断超时时长:10000ms
mybatis:
type-aliases-package: com.leyou.user.pojo
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/amoswong/amos-mall-config.git
git@gitee.com:amoswong/amos-mall-config.git
amoswong
amos-mall-config
amos-mall-config
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385