1 Star 0 Fork 1

宋君军/b2b2c-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
application.yml 5.28 KB
一键复制 编辑 原始数据 按行查看 历史
zfqjava 提交于 2020-06-19 11:00 . change ip
eureka:
client:
serviceUrl:
defaultZone: http://discovery-service.ns-javashop/eureka/
instance:
prefer-ip-address: true
lease-renewal-interval-in-seconds: 1
lease-expiration-duration-in-seconds: 2
command:
default: #default全局有效,service id指定应用有效
execution:
timeout:
#是否开启超时熔断
enabled: true
isolation:
strategy: SEMAPHORE
thread:
timeoutInMilliseconds: 60000
semaphore:
maxConcurrentRequests: 800
hystrix:
threadpool:
default:
coreSize: 300
maxQueueSize: 600
queueSizeRejectionThreshold: 600
command:
default: #default全局有效,service id指定应用有效
execution:
timeout:
#是否开启超时熔断
enabled: false
isolation:
thread:
timeoutInMilliseconds: 60000
feign:
httpclient:
max-connections: 600
max-connections-per-route: 300
okhttp:
enabled: true
ribbon:
ReadTimeout: 60000
ConnectTimeout: 60000
management:
endpoint:
health:
show-details: ALWAYS
endpoints:
web:
exposure:
include: "*"
spring:
jackson:
property-naming-strategy: SNAKE_CASE
servlet:
multipart:
enabled: true
max-file-size: 10MB
max-request-size: 10MB
datasource:
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
security:
user:
name: "admin"
password: "admin"
jackson:
property-naming-strategy: SNAKE_CASE
profiles:
active: dev
rabbitmq:
host: rabbitmq.ns-rabbitmq
port: 5672
username: guest
password: guest
virtual-host: /
#elasticsearch配置
data:
elasticsearch:
action:
auto_create_index: true
cluster-name: elasticsearch-cluster
cluster-nodes: elasticsearch-api-service.ns-elasticsearch:9300
index-name: javashop
# 开发环境日志为debug
logging:
config: classpath:logback-custom.xml #日志文件自定义名
# 可独立的日志ES
es:
action:
auto_create_index: true
cluster-name: elasticsearch-cluster
cluster-nodes: elasticsearch-api-service.ns-elasticsearch:9300
xpack:
security:
user:
level:
org.springframework: ERROR
com.enation.app : DEBUG
#redis 配置
redis:
type: standalone
config :
type: manual
host: 10.0.20.180
port: 6379
password:
maxIdle: 500
maxTotal: 500
maxWaitMillis: -1
javashop:
product: microservice
license[0]: 0ad22658946fee0030204ed1c18f5d86ec2f71fadfa99ed539f6552cff0c5b2baec8ac531cf73c9284d7a36775294e70619b66b2c64cc888fb54a10587db99c3499019b48cc434b9f93bd65359293edf3a0b17932f1916f6d05443888ced6191beab149ab918476f80adf4f2c8d2aa504cea76975e5360039942f0a17cc22547,4a0a2e796ef27271c887b4e52d1670f6df2f490babd7a6af6a007357691b591c428d780c21e59c68192675f3946ad4d1c6d1c91b00952244
#token加密秘钥,请务必更换此词串,且注意保密
token-secret: 85d6ce9da4e943ff4dcd367ab3d94164
timeout:
accessTokenTimeout: 3600
refreshTokenTimeout: 4200
captchaTimout: 120
smscodeTimout: 120
isDemoSite: no
ssl: off #是否开启ssl
domain:
buyer: md-buyer.javamall.com.cn #配置为您买家端PC的域名
mobileBuyer: md-m.javamall.com.cn #配置为您买家端WAP的域名
callback: md-api.javamall.com.cn #请配置为您站点的买家端的api域名,如果不配置此项默认读取站点买家端api的域名,用来做支付新人登录回调
referer:
- 'servicewechat.com' #小程序referer
- 'unitradeprod.alipay.com' #支付宝同步回调 referer
xxl:
job:
admin:
addresses: http://xxl-job-service.ns-javashop/xxl-job-admin
executor:
appname: job-executer
ip:
port: 6999
logpath: /opt/xxl-serverlogs
logretentiondays: -1
accessToken:
seata:
enabled: true #开启seata
application-id: javashop
tx-service-group: javashopt_tx_group
client:
rm-async-commit-buffer-limit: 1000
rm-report-retry-count: 5
rm-table-meta-check-enable: false
rm-report-success-enable: true
rm:
lock:
lock-retry-interval: 10
lock-retry-times: 30
lock-retry-policy-branch-rollback-on-conflict: true
tm-commit-retry-count: 5
tm-rollback-retry-count: 5
support:
spring:
datasource-autoproxy: true
undo:
undo-data-validation: true
undo-log-serialization: jackson
undo-log-table: undo_log
client:
log:
exceptionRate: 100
service:
vgroup-mapping: default
grouplist: 10.0.20.180:8091
enable-degrade: false
disable-global-transaction: false
transport:
shutdown:
wait: 3
thread-factory:
boss-thread-prefix: NettyBoss
worker-thread-prefix: NettyServerNIOWorker
server-executor-thread-prefix: NettyServerBizHandler
share-boss-worker: false
client-selector-thread-prefix: NettyClientSelector
client-selector-thread-size: 1
client-worker-thread-prefix: NettyClientWorkerThread
type: TCP
server: NIO
heartbeat: true
serialization: seata
compressor: none
enable-client-batch-send-request: true
config:
type: file
file:
name: file.conf
registry:
type: file
file:
name: file.conf
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hxsjj/b2b2c-config.git
git@gitee.com:hxsjj/b2b2c-config.git
hxsjj
b2b2c-config
b2b2c-config
middle-end-k8s

搜索帮助