项目中dubbo的标准配置

Posted leigepython

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了项目中dubbo的标准配置相关的知识,希望对你有一定的参考价值。

# 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的标准配置的主要内容,如果未能解决你的问题,请参考以下文章

电商项目maven框架搭建引入dubbo配置文件报错

Dubbo在开发中的一些常用配置

dubbo的配置文件一直报错,但是不影响整体项目的运行时的解决方法

Dubbo配置文件详解

构建 Zookeeper + Dubbo + Spring Boot 的分布式调用项目

Dubbo配置参数详解-generic