Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
3b49aff5
提交
3b49aff5
authored
4月 12, 2020
作者:
YunaiV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
将 search 模块接入 SCA Dubbo 和 Nacos Discovery 组件
上级
60db9b9a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
34 行增加
和
21 行删除
+34
-21
pom.xml
search/pom.xml
+13
-0
pom.xml
search/search-service-impl/pom.xml
+4
-16
application.yaml
...h-service-impl/src/main/resources/config/application.yaml
+17
-5
没有找到文件。
search/pom.xml
浏览文件 @
3b49aff5
...
...
@@ -16,4 +16,17 @@
<module>
search-service-api
</module>
<module>
search-service-impl
</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
cn.iocoder.mall
</groupId>
<artifactId>
common-dependencies
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
search/search-service-impl/pom.xml
浏览文件 @
3b49aff5
...
...
@@ -42,22 +42,14 @@
<!-- RPC 相关 -->
<dependency>
<groupId>
org.apache.dubbo
</groupId>
<artifactId>
dubbo
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.dubbo
</groupId>
<artifactId>
dubbo-spring-boot-starter
</artifactId>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-dubbo
</artifactId>
</dependency>
<!-- Registry 和 Config 相关 -->
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-framework
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-recipes
</artifactId>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
</dependency>
<!-- MQ 相关 -->
...
...
@@ -78,10 +70,6 @@
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.apache.curator
</groupId>
<!-- 引入该包,为了写单元测试用 -->
<artifactId>
curator-framework
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<!-- 引入该包,为了写单元测试用 -->
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
search/search-service-impl/src/main/resources/config/application.yaml
浏览文件 @
3b49aff5
...
...
@@ -7,17 +7,29 @@ spring:
repositories
:
enable
:
true
# dubbo
# Spring Cloud 配置项
cloud
:
nacos
:
# Spring Cloud Nacos Discovery 配置项
discovery
:
server-addr
:
127.0.0.1:8848
# Nacos 服务器地址
# Dubbo 配置项
dubbo
:
application
:
name
:
search-service
# Dubbo 注册中心
registry
:
address
:
zookeeper://127.0.0.1:2181
address
:
spring-cloud://127.0.0.1:8848
# 指定 Dubbo 服务注册中心的地址
# Spring Cloud Alibaba Dubbo 专属配置
cloud
:
subscribed-services
:
admin-application, order-application, product-application
# 设置订阅的应用列表,默认为 * 订阅所有应用
# Dubbo 提供者的协议
protocol
:
port
:
-1
name
:
dubbo
port
:
-1
# Dubbo 提供服务的扫描基础包
scan
:
base-packages
:
cn.iocoder.mall.search.biz.service
# Dubbo 服务提供者的配置
provider
:
filter
:
-exception
ProductSearchService
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论