标签搜索
Dubbo 服务间通信
记录笔记的地方

Dubbo 服务间通信

skwax
2021-08-10 / 0 评论 / 87 阅读 / 正在检测是否收录...
  1. pom.xml
        <!-- SpringCloud Alibaba Dubbo  -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-dubbo</artifactId>
        </dependency>

        <!-- 公有的dubbo接口 引入公共API模块 -->
                <dependency>
            <groupId>ssssss</groupId>
            <artifactId>ecloud-base-api</artifactId>
            <version>${project.version}</version>
        </dependency>
  1. 参考 https://www.cnblogs.com/babycomeon/p/11546737.html
  1. 新版本 的 @Reference 替换为 org.apache.dubbo.config.annotation.DubboReference @DubboReference
  2. 新版本 的 @Service 替换为 org.apache.dubbo.config.annotation.DubboService @DubboService

项目配置:

dubbo:
  protocol:
    name: dubbo
    port: -1
  registry:
    address: spring-cloud://192.168.2.9:8848
0

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/biji.moyuke.net/var/Widget/Archive.php on line 1032

评论

博主关闭了所有页面的评论