Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
72ed4903
提交
72ed4903
authored
8月 02, 2020
作者:
YunaiV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改 product-service-app 的 dev 的注册中心的配置
上级
d970591a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
1 行删除
+27
-1
pom.xml
product-service-project/product-service-app/pom.xml
+19
-0
application-dev.yaml
...oduct-service-app/src/main/resources/application-dev.yaml
+2
-1
application.yaml
...t/product-service-app/src/main/resources/application.yaml
+6
-0
没有找到文件。
product-service-project/product-service-app/pom.xml
浏览文件 @
72ed4903
...
@@ -30,6 +30,12 @@
...
@@ -30,6 +30,12 @@
<artifactId>
product-service-api
</artifactId>
<artifactId>
product-service-api
</artifactId>
</dependency>
</dependency>
<!-- Web 相关 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<!-- 需要开启 Web 容器,因为 Actuator 需要使用到 -->
</dependency>
<!-- MQ 相关 -->
<!-- MQ 相关 -->
<dependency>
<dependency>
<groupId>
cn.iocoder.mall
</groupId>
<groupId>
cn.iocoder.mall
</groupId>
...
@@ -58,6 +64,12 @@
...
@@ -58,6 +64,12 @@
<artifactId>
mall-spring-boot-starter-mybatis
</artifactId>
<artifactId>
mall-spring-boot-starter-mybatis
</artifactId>
</dependency>
</dependency>
<!-- 监控相关 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<!-- 工具类相关 -->
<!-- 工具类相关 -->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
@@ -88,6 +100,13 @@
...
@@ -88,6 +100,13 @@
<build>
<build>
<!-- 设置构建的 jar 包名 -->
<!-- 设置构建的 jar 包名 -->
<finalName>
${project.artifactId}
</finalName>
<finalName>
${project.artifactId}
</finalName>
<!-- 使用 spring-boot-maven-plugin 插件打包 -->
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</build>
</project>
</project>
product-service-project/product-service-app/src/main/resources/application-dev.yaml
浏览文件 @
72ed4903
...
@@ -17,4 +17,5 @@ spring:
...
@@ -17,4 +17,5 @@ spring:
dubbo
:
dubbo
:
# Dubbo 注册中心
# Dubbo 注册中心
registry
:
registry
:
address
:
spring-cloud://400-infra.server.iocoder.cn:8848
# 指定 Dubbo 服务注册中心的地址
# address: spring-cloud://400-infra.server.iocoder.cn:8848 # 指定 Dubbo 服务注册中心的地址
address
:
nacos://400-infra.server.iocoder.cn:8848?namespace=dev
# 指定 Dubbo 服务注册中心的地址
product-service-project/product-service-app/src/main/resources/application.yaml
浏览文件 @
72ed4903
...
@@ -46,6 +46,12 @@ rocketmq:
...
@@ -46,6 +46,12 @@ rocketmq:
producer
:
producer
:
group
:
${spring.application.name}-producer-group
group
:
${spring.application.name}-producer-group
# Actuator 监控配置项
management
:
server.port
:
38082
# 独立端口,避免被暴露出去
endpoints.web.exposure.include
:
'
*'
# 暴露所有监控端点
server.port
:
${management.server.port}
# 设置使用 Actuator 的服务器端口,因为 RPC 服务不需要 Web 端口
# Mall 配置项
# Mall 配置项
mall
:
mall
:
# 错误码配置项对应 ErrorCodeProperties 配置类
# 错误码配置项对应 ErrorCodeProperties 配置类
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论