码迷,mamicode.com
首页 > 其他好文 > 详细

项目中dubbo的标准配置

时间:2019-08-26 09:52:46      阅读:59      评论:0      收藏:0      [点我收藏+]

标签:ann   back   provider   app   配置   point   ota   registry   ext   

# Spring boot application
spring:
application:
name: hello-dubbo-service-user-provider

# UserService service version
user:
service:
version: 1.0.0

# Dubbo Config properties
dubbo:
## Base packages to scan Dubbo Component:@com.alibaba.dubbo.config.annotation.Service
scan:
basePackages: com.funtl.hello.dubbo.service.user.provider.api
## ApplicationConfig Bean
application:
id: hello-dubbo-service-user-provider
name: hello-dubbo-service-user-provider
qos-port: 22222
qos-enable: true
## ProtocolConfig Bean
protocol:
id: dubbo
name: dubbo
port: 12346
status: server
serialization: kryo
## RegistryConfig Bean
registry:
id: zookeeper
address: zookeeper://192.168.23.144:2181?backup=192.168.23.144:2182,192.168.23.144:2183
# Enables Dubbo All Endpoints
management:
endpoint:
dubbo:
enabled: true
dubbo-shutdown:
enabled: true
dubbo-configs:
enabled: true
dubbo-services:
enabled: true
dubbo-references:
enabled: true
dubbo-properties:
enabled: true
# Dubbo Health
health:
dubbo:
status:
## StatusChecker Name defaults (default : "memory", "load" )
defaults: memory
## StatusChecker Name extras (default : empty )
extras: load,threadpool

项目中dubbo的标准配置

标签:ann   back   provider   app   配置   point   ota   registry   ext   

原文地址:https://www.cnblogs.com/leigepython/p/11410399.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!