Skip to content

Commit

Permalink
Merge branch 'master-jdk17' of https://gitee.com/zhijiantianya/yudao-…
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Jul 14, 2024
2 parents b57f671 + 9834d80 commit 64cc305
Show file tree
Hide file tree
Showing 24 changed files with 214 additions and 170 deletions.
5 changes: 0 additions & 5 deletions yudao-module-mall/yudao-module-product-biz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

<dependencies>
<!-- Spring Cloud 基础 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>yudao-spring-boot-starter-env</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
--- #################### 注册中心 + 配置中心相关配置 ####################

spring:
cloud:
nacos:
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP

--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
--- #################### 注册中心 + 配置中心相关配置 ####################

spring:
cloud:
nacos:
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP

--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
Expand Down Expand Up @@ -105,7 +122,8 @@ spring:
logging:
level:
# 配置自己写的 MyBatis Mapper 打印日志
cn.iocoder.yudao.module.system.dal.mysql: debug
cn.iocoder.yudao.module.product.dal.mysql: debug
org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示

--- #################### 芋道相关配置 ####################

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
spring:
application:
name: product-server

profiles:
active: local

main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务

config:
import:
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置

# Servlet 配置
servlet:
# 文件上传相关配置项
Expand All @@ -24,6 +35,13 @@ spring:
redis:
time-to-live: 1h # 设置过期时间为 1 小时

server:
port: 48100

logging:
file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径

--- #################### 接口文档配置 ####################

springdoc:
Expand Down

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions yudao-module-mall/yudao-module-promotion-biz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

<dependencies>
<!-- Spring Cloud 基础 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>yudao-spring-boot-starter-env</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
--- #################### 注册中心 + 配置中心相关配置 ####################

spring:
cloud:
nacos:
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP

--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
--- #################### 注册中心 + 配置中心相关配置 ####################

spring:
cloud:
nacos:
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP

--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
Expand Down Expand Up @@ -106,6 +123,7 @@ logging:
level:
# 配置自己写的 MyBatis Mapper 打印日志
cn.iocoder.yudao.module.promotion.dal.mysql: debug
org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示

--- #################### 芋道相关配置 ####################

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
spring:
application:
name: promotion-server

profiles:
active: local

main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务

config:
import:
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置

# Servlet 配置
servlet:
# 文件上传相关配置项
Expand All @@ -24,6 +35,13 @@ spring:
redis:
time-to-live: 1h # 设置过期时间为 1 小时

server:
port: 48101

logging:
file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径

--- #################### 接口文档配置 ####################

springdoc:
Expand Down

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions yudao-module-mall/yudao-module-statistics-biz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

<dependencies>
<!-- Spring Cloud 基础 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>yudao-spring-boot-starter-env</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
--- #################### 注册中心 + 配置中心相关配置 ####################

spring:
cloud:
nacos:
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP

--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
--- #################### 注册中心 + 配置中心相关配置 ####################

spring:
cloud:
nacos:
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
username: # Nacos 账号
password: # Nacos 密码
discovery: # 【配置中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
metadata:
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
config: # 【注册中心】配置项
namespace: dev # 命名空间。这里使用 dev 开发环境
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP

--- #################### 数据库相关配置 ####################
spring:
# 数据源配置项
Expand Down Expand Up @@ -105,7 +122,8 @@ spring:
logging:
level:
# 配置自己写的 MyBatis Mapper 打印日志
cn.iocoder.yudao.module.system.dal.mysql: debug
cn.iocoder.yudao.module.statistics.dal.mysql: debug
org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示

--- #################### 芋道相关配置 ####################

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
spring:
application:
name: statistics-server

profiles:
active: local

main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务

config:
import:
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置

# Servlet 配置
servlet:
# 文件上传相关配置项
Expand All @@ -24,6 +35,13 @@ spring:
redis:
time-to-live: 1h # 设置过期时间为 1 小时

server:
port: 48103

logging:
file:
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径

--- #################### 接口文档配置 ####################

springdoc:
Expand Down

This file was deleted.

Loading

0 comments on commit 64cc305

Please sign in to comment.