1 Star 0 Fork 0

AmosWong/amos-mall-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
comments-dev.yml 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
飘来荡去 提交于 2018-12-09 21:27 . 修改评论mongodb数据库
server:
port: 8092
tomcat:
max-connections: 5000
spring:
application:
name: comments-service
data:
mongodb:
host: 192.168.19.121
database: leyoudb
datasource:
url: jdbc:mysql://127.0.0.1:3306/leyou?characterEncoding=UTF-8&useSSL=false
username: root
password: 123456
hikari:
maximum-pool-size: 20
minimum-idle: 10
rabbitmq:
virtual-host: /leyou
username: /leyou
password: leyou
host: 192.168.19.121
redis:
host: 192.168.19.121
jackson:
default-property-inclusion: non_null # 配置json处理时忽略空值
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-expiration-duration-in-seconds: 10 #10秒不发送九过期
lease-renewal-interval-in-seconds: 5 #每隔5秒发一次心跳
ribbon:
ConnectTimeout: 4000 # 连接超时时间(ms)
ReadTimeout: 2000 # 通信超时时间(ms)
OkToRetryOnAllOperations: true # 是否对所有操作重试
MaxAutoRetriesNextServer: 1 # 同一服务不同实例的重试次数
MaxAutoRetries: 1 # 同一实例的重试次数
leyou:
worker:
workerId: 2
dataCenterId: 2
jwt:
cookieName: LY_TOKEN
pubKeyPath: G:\\tmp\\rsa\\rsa.pub # 公钥地址
马建仓 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