百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dubbo-spring-boot-starter

> 后端框架
开源

Dubbo Spring Boot 启动器

2.1K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Dubbo Spring Boot 启动器

dubbo-spring-boot-starter() (https://maven-badges.herokuapp.com/maven-central/com.alibaba.spring.boot/dubbo-spring-boot-starter)

Dubbo Spring Boot 启动器。Dubbo 官方 dubbo-spring-boot-project 支持 jdk 1.6 或 1.6+ 版本 (如果您想修改代码,请导入 googlestyle-java.xml)

如何发布 dubbo

  • 添加依赖项:
xml
    <dependency>
        <groupId>com.alibaba.spring.boot</groupId>
        <artifactId>dubbo-spring-boot-starter</artifactId>
        <version>2.0.0</version>
    </dependency>
  • 在 application.properties 中添加 dubbo 配置,示例:
properties
spring.application.name=dubbo-spring-boot-starter
spring.dubbo.server=true
spring.dubbo.registry=N/A
  • 然后在 Spring Boot 应用程序中添加 @EnableDubboConfiguration,表示已启用 Dubbo。 (Web 或非 Web 应用程序均可使用 Dubbo 提供程序)
java
@SpringBootApplication
@EnableDubboConfiguration
public class DubboProviderLauncher {
  //...
}
  • 编写 Dubbo 服务代码,在服务类上添加 @Service(import com.alibaba.dubbo.config.annotation.Service),interfaceClass 是要发布的接口。

中文版文档

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javadubbospring-boot

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架