Commit eb2ab3cc4d50bd174b10570fb3199d0c14d9df54

Authored by YunaiV
1 parent c2ccfa3b

清理多余文件与配置

img.png deleted

189 KB

@@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
12 <module>yudao-framework</module> 12 <module>yudao-framework</module>
13 <!-- Server 主项目 --> 13 <!-- Server 主项目 -->
14 <module>yudao-server</module> 14 <module>yudao-server</module>
15 -<!-- <module>yudao-user-server</module>-->  
16 <!-- 各种 module 拓展 --> 15 <!-- 各种 module 拓展 -->
17 <module>yudao-module-member</module> 16 <module>yudao-module-member</module>
18 <module>yudao-module-bpm</module> 17 <module>yudao-module-bpm</module>
yudao-dependencies/pom.xml
@@ -80,11 +80,6 @@ @@ -80,11 +80,6 @@
80 <!-- 业务组件 --> 80 <!-- 业务组件 -->
81 <dependency> 81 <dependency>
82 <groupId>cn.iocoder.boot</groupId> 82 <groupId>cn.iocoder.boot</groupId>
83 - <artifactId>yudao-core-service</artifactId>  
84 - <version>${revision}</version>  
85 - </dependency>  
86 - <dependency>  
87 - <groupId>cn.iocoder.boot</groupId>  
88 <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId> 83 <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId>
89 <version>${revision}</version> 84 <version>${revision}</version>
90 </dependency> 85 </dependency>
yudao-module-bpm/yudao-module-bpm-base/src/test/resources/application.yaml deleted
1 -spring:  
2 - application:  
3 - name: yudao-module-bpm-service  
4 -  
5 - # Jackson 配置项  
6 - jackson:  
7 - serialization:  
8 - write-dates-as-timestamps: true # 设置 Date 的格式,使用时间戳  
9 - write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401  
10 - write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳  
11 - fail-on-empty-beans: false # 允许序列化无属性的 Bean  
12 -  
13 -# MyBatis Plus 的配置项  
14 -mybatis-plus:  
15 - configuration:  
16 - map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。  
17 - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印日志  
18 - global-config:  
19 - db-config:  
20 - id-type: AUTO # 自增 ID  
21 - logic-delete-value: 1 # 逻辑已删除值(默认为 1)  
22 - logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)  
23 - mapper-locations: classpath*:mapper/*.xml  
24 - type-aliases-package: ${yudao.core-service.base-package}.modules.*.dal.dataobject  
25 -  
26 ---- #################### 芋道相关配置 ####################  
27 -  
28 -yudao:  
29 - info:  
30 - version: 1.0.0  
31 - base-package: cn.iocoder.yudao.adminserver  
32 - core-service:  
33 - base-package: cn.iocoder.yudao.coreservice  
34 -  
35 -debug: false  
yudao-module-bpm/yudao-module-bpm-impl-activiti/src/test/resources/application-unit-test.yaml
@@ -44,7 +44,4 @@ mybatis: @@ -44,7 +44,4 @@ mybatis:
44 # 芋道配置项,设置当前项目所有自定义的配置 44 # 芋道配置项,设置当前项目所有自定义的配置
45 yudao: 45 yudao:
46 info: 46 info:
47 - base-package: cn.iocoder.yudao.module.member.dal.mysql  
48 - base-package2: cn.iocoder.yudao.module  
49 - core-service:  
50 - base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉 47 + base-package: cn.iocoder.yudao.module
yudao-module-infra/yudao-module-infra-impl/src/test/resources/application-unit-test.yaml
@@ -44,11 +44,4 @@ mybatis: @@ -44,11 +44,4 @@ mybatis:
44 # 芋道配置项,设置当前项目所有自定义的配置 44 # 芋道配置项,设置当前项目所有自定义的配置
45 yudao: 45 yudao:
46 info: 46 info:
47 - base-package: cn.iocoder.yudao.module.member.dal.mysql  
48 - base-package2: cn.iocoder.yudao.module  
49 - core-service:  
50 - base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉  
51 - pay:  
52 - pay-notify-url: http://niubi.natapp1.cc/api/pay/order/notify  
53 - pay-return-url: http://niubi.natapp1.cc/api/pay/order/return  
54 - refund-notify-url: http://niubi.natapp1.cc/api/pay/refund/notify 47 + base-package: cn.iocoder.yudao.module
yudao-module-member/yudao-module-member-impl/src/test/resources/application-unit-test.yaml
@@ -44,7 +44,4 @@ mybatis: @@ -44,7 +44,4 @@ mybatis:
44 # 芋道配置项,设置当前项目所有自定义的配置 44 # 芋道配置项,设置当前项目所有自定义的配置
45 yudao: 45 yudao:
46 info: 46 info:
47 - base-package: cn.iocoder.yudao.module.member.dal.mysql  
48 - base-package2: cn.iocoder.yudao.module  
49 - core-service:  
50 - base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉 47 + base-package: cn.iocoder.yudao.module
yudao-module-pay/yudao-module-pay-api/pom.xml
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <parent> 5 <parent>
6 <artifactId>yudao-module-pay</artifactId> 6 <artifactId>yudao-module-pay</artifactId>
7 <groupId>cn.iocoder.boot</groupId> 7 <groupId>cn.iocoder.boot</groupId>
8 - <version>1.4.0-snapshot</version> 8 + <version>${revision}</version>
9 </parent> 9 </parent>
10 <modelVersion>4.0.0</modelVersion> 10 <modelVersion>4.0.0</modelVersion>
11 <artifactId>yudao-module-pay-api</artifactId> 11 <artifactId>yudao-module-pay-api</artifactId>
yudao-module-pay/yudao-module-pay-impl/pom.xml
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <parent> 5 <parent>
6 <artifactId>yudao-module-pay</artifactId> 6 <artifactId>yudao-module-pay</artifactId>
7 <groupId>cn.iocoder.boot</groupId> 7 <groupId>cn.iocoder.boot</groupId>
8 - <version>1.4.0-snapshot</version> 8 + <version>${revision}</version>
9 </parent> 9 </parent>
10 <modelVersion>4.0.0</modelVersion> 10 <modelVersion>4.0.0</modelVersion>
11 <artifactId>yudao-module-pay-impl</artifactId> 11 <artifactId>yudao-module-pay-impl</artifactId>
yudao-module-pay/yudao-module-pay-impl/src/test-integration/resources/application-integration-test.yaml
@@ -60,7 +60,7 @@ mybatis-plus: @@ -60,7 +60,7 @@ mybatis-plus:
60 logic-delete-value: 1 # 逻辑已删除值(默认为 1) 60 logic-delete-value: 1 # 逻辑已删除值(默认为 1)
61 logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) 61 logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
62 mapper-locations: classpath*:mapper/*.xml 62 mapper-locations: classpath*:mapper/*.xml
63 - type-aliases-package: ${yudao.core-service.base-package}.modules.*.dal.dataobject 63 + type-aliases-package: ${yudao.info.base-package}.module.*.dal.dataobject
64 64
65 --- #################### 定时任务相关配置 #################### 65 --- #################### 定时任务相关配置 ####################
66 66
@@ -87,10 +87,7 @@ resilience4j: @@ -87,10 +87,7 @@ resilience4j:
87 yudao: 87 yudao:
88 info: 88 info:
89 version: 1.0.0 89 version: 1.0.0
90 - base-package: cn.iocoder.yudao.adminserver  
91 - base-package2: cn.iocoder.yudao.module  
92 - core-service:  
93 - base-package: cn.iocoder.yudao.coreservice 90 + base-package: cn.iocoder.yudao.module
94 pay: 91 pay:
95 pay-notify-url: http://niubi.natapp1.cc/api/pay/order/notify 92 pay-notify-url: http://niubi.natapp1.cc/api/pay/order/notify
96 refund-notify-url: http://niubi.natapp1.cc/api/pay/refund/notify 93 refund-notify-url: http://niubi.natapp1.cc/api/pay/refund/notify
yudao-module-pay/yudao-module-pay-impl/src/test/resources/application-unit-test.yaml
@@ -44,11 +44,4 @@ mybatis: @@ -44,11 +44,4 @@ mybatis:
44 # 芋道配置项,设置当前项目所有自定义的配置 44 # 芋道配置项,设置当前项目所有自定义的配置
45 yudao: 45 yudao:
46 info: 46 info:
47 - base-package: cn.iocoder.yudao.module.member.dal.mysql  
48 - base-package2: cn.iocoder.yudao.module  
49 - core-service:  
50 - base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉  
51 - captcha:  
52 - timeout: 5m  
53 - width: 160  
54 - height: 60 47 + base-package: cn.iocoder.yudao.module
yudao-module-system/yudao-module-system-impl/src/test/resources/application-unit-test.yaml
@@ -44,10 +44,7 @@ mybatis: @@ -44,10 +44,7 @@ mybatis:
44 # 芋道配置项,设置当前项目所有自定义的配置 44 # 芋道配置项,设置当前项目所有自定义的配置
45 yudao: 45 yudao:
46 info: 46 info:
47 - base-package: cn.iocoder.yudao.module.member.dal.mysql  
48 - base-package2: cn.iocoder.yudao.module  
49 - core-service:  
50 - base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉 47 + base-package: cn.iocoder.yudao.module
51 captcha: 48 captcha:
52 timeout: 5m 49 timeout: 5m
53 width: 160 50 width: 160
yudao-server/src/test-integration/java/cn/iocoder/yudao/adminserver/modules/system/service/package-info.java deleted
1 -package cn.iocoder.yudao.module.system.service;  
yudao-user-server/pom.xml deleted
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<project xmlns="http://maven.apache.org/POM/4.0.0"  
3 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
4 - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  
5 - <parent>  
6 - <groupId>cn.iocoder.boot</groupId>  
7 - <artifactId>yudao</artifactId>  
8 - <version>${revision}</version>  
9 - </parent>  
10 - <modelVersion>4.0.0</modelVersion>  
11 -  
12 - <artifactId>yudao-user-server</artifactId>  
13 - <packaging>jar</packaging>  
14 -  
15 - <name>yudao-user-server</name>  
16 - <description>用户前台 Server,提供其 API 接口</description>  
17 - <url>https://github.com/YunaiV/ruoyi-vue-pro</url>  
18 -  
19 - <dependencies>  
20 - <!-- 业务组件 -->  
21 - <dependency>  
22 - <groupId>cn.iocoder.boot</groupId>  
23 - <artifactId>yudao-core-service</artifactId>  
24 - </dependency>  
25 -  
26 - <dependency>  
27 - <groupId>cn.iocoder.boot</groupId>  
28 - <artifactId>yudao-spring-boot-starter-biz-dict</artifactId>  
29 - </dependency>  
30 - <dependency>  
31 - <groupId>cn.iocoder.boot</groupId>  
32 - <artifactId>yudao-spring-boot-starter-biz-sms</artifactId>  
33 - </dependency>  
34 - <dependency>  
35 - <groupId>cn.iocoder.boot</groupId>  
36 - <artifactId>yudao-spring-boot-starter-biz-weixin</artifactId>  
37 - </dependency>  
38 -  
39 - <!-- Web 相关 -->  
40 - <dependency>  
41 - <groupId>cn.iocoder.boot</groupId>  
42 - <artifactId>yudao-spring-boot-starter-web</artifactId>  
43 - </dependency>  
44 -  
45 - <dependency>  
46 - <groupId>cn.iocoder.boot</groupId>  
47 - <artifactId>yudao-spring-boot-starter-security</artifactId>  
48 - </dependency>  
49 -  
50 - <!-- DB 相关 -->  
51 - <dependency>  
52 - <groupId>cn.iocoder.boot</groupId>  
53 - <artifactId>yudao-spring-boot-starter-mybatis</artifactId>  
54 - </dependency>  
55 -  
56 - <dependency>  
57 - <groupId>cn.iocoder.boot</groupId>  
58 - <artifactId>yudao-spring-boot-starter-redis</artifactId>  
59 - </dependency>  
60 -  
61 - <!-- Config 配置中心相关 -->  
62 - <dependency>  
63 - <groupId>cn.iocoder.boot</groupId>  
64 - <artifactId>yudao-spring-boot-starter-config</artifactId>  
65 - </dependency>  
66 -  
67 - <!-- Job 定时任务相关 -->  
68 -  
69 - <!-- 消息队列相关 -->  
70 - <dependency>  
71 - <groupId>cn.iocoder.boot</groupId>  
72 - <artifactId>yudao-spring-boot-starter-mq</artifactId>  
73 - </dependency>  
74 -  
75 - <!-- 服务保障相关 -->  
76 - <dependency>  
77 - <groupId>cn.iocoder.boot</groupId>  
78 - <artifactId>yudao-spring-boot-starter-protection</artifactId>  
79 - </dependency>  
80 -  
81 - <!-- 监控相关 -->  
82 - <dependency>  
83 - <groupId>cn.iocoder.boot</groupId>  
84 - <artifactId>yudao-spring-boot-starter-monitor</artifactId>  
85 - </dependency>  
86 -  
87 - <!-- Test 测试相关 -->  
88 - <dependency>  
89 - <groupId>cn.iocoder.boot</groupId>  
90 - <artifactId>yudao-spring-boot-starter-test</artifactId>  
91 - <scope>test</scope>  
92 - </dependency>  
93 - <!-- 工具类相关 -->  
94 -  
95 - </dependencies>  
96 -  
97 - <build>  
98 - <!-- 设置构建的 jar 包名 -->  
99 - <finalName>${artifactId}</finalName>  
100 - <plugins>  
101 - <!-- 打包 -->  
102 - <plugin>  
103 - <groupId>org.springframework.boot</groupId>  
104 - <artifactId>spring-boot-maven-plugin</artifactId>  
105 - <configuration>  
106 - <fork>true</fork>  
107 - </configuration>  
108 - <executions>  
109 - <execution>  
110 - <goals>  
111 - <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->  
112 - </goals>  
113 - </execution>  
114 - </executions>  
115 - </plugin>  
116 - </plugins>  
117 - </build>  
118 -  
119 -</project>  
yudao-user-server/src/main/resources/application-dev.yaml deleted
1 -server:  
2 - port: 28080  
3 -  
4 ---- #################### 数据库相关配置 ####################  
5 -  
6 -spring:  
7 - # 数据源配置项  
8 - autoconfigure:  
9 - exclude:  
10 - - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源  
11 - datasource:  
12 - druid: # Druid 【监控】相关的全局配置  
13 - web-stat-filter:  
14 - enabled: true  
15 - stat-view-servlet:  
16 - enabled: true  
17 - allow: # 设置白名单,不填则允许所有访问  
18 - url-pattern: /druid/*  
19 - login-username: # 控制台管理用户名和密码  
20 - login-password:  
21 - filter:  
22 - stat:  
23 - enabled: true  
24 - log-slow-sql: true # 慢 SQL 记录  
25 - slow-sql-millis: 100  
26 - merge-sql: true  
27 - wall:  
28 - config:  
29 - multi-statement-allow: true  
30 - dynamic: # 多数据源配置  
31 - druid: # Druid 【连接池】相关的全局配置  
32 - initial-size: 5 # 初始连接数  
33 - min-idle: 10 # 最小连接池数量  
34 - max-active: 20 # 最大连接池数量  
35 - max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒  
36 - time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒  
37 - min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒  
38 - max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒  
39 - validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效  
40 - test-while-idle: true  
41 - test-on-borrow: false  
42 - test-on-return: false  
43 - primary: master  
44 - datasource:  
45 - master:  
46 - name: ruoyi-vue-pro  
47 - url: jdbc:mysql://400-infra.server.iocoder.cn:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT  
48 - driver-class-name: com.mysql.jdbc.Driver  
49 - username: root  
50 - password: 3WLiVUBEwTbvAfsh  
51 - slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改  
52 - name: ruoyi-vue-pro  
53 - url: jdbc:mysql://400-infra.server.iocoder.cn:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT  
54 - driver-class-name: com.mysql.jdbc.Driver  
55 - username: root  
56 - password: 3WLiVUBEwTbvAfsh  
57 -  
58 - # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优  
59 - redis:  
60 - host: 400-infra.server.iocoder.cn # 地址  
61 - port: 6379 # 端口  
62 - database: 1 # 数据库索引  
63 -  
64 ---- #################### 定时任务相关配置 ####################  
65 -  
66 -# Quartz 配置项,对应 QuartzProperties 配置类  
67 -spring:  
68 - quartz:  
69 - auto-startup: false # 无需使用 Quartz,交给 yudao-admin-server 环境  
70 -  
71 ---- #################### 配置中心相关配置 ####################  
72 -  
73 -# Apollo 配置中心  
74 -apollo:  
75 - bootstrap:  
76 - enabled: true # 设置 Apollo 在启动阶段生效  
77 - eagerLoad:  
78 - enabled: true # 设置 Apollo 在日志初始化前生效,可以实现日志的动态级别配置  
79 - jdbc: # 自定义的 JDBC 配置项,用于数据库的地址  
80 - dao: cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.config.InfConfigCoreDAOImpl  
81 - url: ${spring.datasource.dynamic.datasource.master.url}  
82 - username: ${spring.datasource.dynamic.datasource.master.username}  
83 - password: ${spring.datasource.dynamic.datasource.master.password}  
84 -  
85 ---- #################### 服务保障相关配置 ####################  
86 -  
87 -# Lock4j 配置项  
88 -lock4j:  
89 - acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒  
90 - expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒  
91 -  
92 -# Resilience4j 配置项  
93 -resilience4j:  
94 - ratelimiter:  
95 - instances:  
96 - backendA:  
97 - limit-for-period: 1 # 每个周期内,允许的请求数。默认为 50  
98 - limit-refresh-period: 60s # 每个周期的时长,单位:微秒。默认为 500  
99 - timeout-duration: 1s # 被限流时,阻塞等待的时长,单位:微秒。默认为 5s  
100 - register-health-indicator: true # 是否注册到健康监测  
101 -  
102 ---- #################### 监控相关配置 ####################  
103 -  
104 -# Actuator 监控端点的配置项  
105 -management:  
106 - endpoints:  
107 - web:  
108 - base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator  
109 - exposure:  
110 - include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。  
111 -  
112 -# Spring Boot Admin 配置项  
113 -spring:  
114 - boot:  
115 - admin:  
116 - # Spring Boot Admin Client 客户端的相关配置  
117 - client:  
118 - url: http://127.0.0.1:${server.port}/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址  
119 - instance:  
120 - prefer-ip: true # 注册实例时,优先使用 IP  
121 -  
122 -# 日志文件配置  
123 -logging:  
124 - file:  
125 - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径  
126 -  
127 -  
128 ---- #################### 微信公众号相关配置 ####################  
129 -wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档  
130 - mp:  
131 - # 公众号配置(必填)  
132 - app-id: wx041349c6f39b268b  
133 - secret: 5abee519483bc9f8cb37ce280e814bd0  
134 - # 存储配置,解决 AccessToken 的跨节点的共享  
135 - config-storage:  
136 - type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取  
137 - key-prefix: wx # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置  
138 - http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台  
139 -  
140 ---- #################### 芋道相关配置 ####################  
141 -  
142 -# 芋道配置项,设置当前项目所有自定义的配置  
143 -yudao:  
144 - security:  
145 - token-header: Authorization  
146 - token-secret: abcdefghijklmnopqrstuvwxyz  
147 - token-timeout: 1d  
148 - session-timeout: 30m  
149 - mock-enable: true  
150 - mock-secret: test  
151 - file:  
152 - base-path: http://api-dashboard.yudao.iocoder.cn${yudao.web.api-prefix}/infra/file/get/  
153 - xss:  
154 - enable: false  
155 - exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系  
156 - - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求  
157 - - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求  
158 - demo: true # 开启演示模式  
159 - pay:  
160 - pay-notify-url: http://niubi.natapp1.cc/api/pay/order/notify  
161 - refund-notify-url: http://niubi.natapp1.cc/api/pay/refund/notify  
162 -  
163 -  
164 -justauth:  
165 - enabled: true  
166 - type:  
167 - WECHAT_MP: # 微信公众平台 - 移动端 H5 https://www.yuque.com/docs/share/a795bef6-ee8a-494a-8dc4-2ef41927743b?#%20%E3%80%8A%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7%E6%B5%8B%E8%AF%95%E3%80%8B  
168 - client-id: wxa5a05b85ac361f96  
169 - client-secret: 247073c7cebb67f27f0e769195c2a57e  
170 - ignore-check-redirect-uri: true  
171 - WECHAT_MINI_PROGRAM: # 微信小程序 https://www.yuque.com/docs/share/88e3d30a-6830-45fc-8c25-dae485aef3aa?#%20%E3%80%8A%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%8E%88%E6%9D%83%E7%99%BB%E5%BD%95%E3%80%8B  
172 - client-id: wx44d047d87e6284d8  
173 - client-secret: 21c3b7a8a51ee1b8f5cf875848ed4466  
174 - ignore-check-redirect-uri: true  
175 - ignore-check-state: true  
176 - cache:  
177 - type: REDIS  
178 - prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::  
179 - timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟  
180 -  
yudao-user-server/src/main/resources/application-local.yaml deleted
1 -server:  
2 - port: 28080  
3 -  
4 ---- #################### 数据库相关配置 ####################  
5 -  
6 -spring:  
7 - # 数据源配置项  
8 - autoconfigure:  
9 - exclude:  
10 - - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源  
11 - datasource:  
12 - druid: # Druid 【监控】相关的全局配置  
13 - web-stat-filter:  
14 - enabled: true  
15 - stat-view-servlet:  
16 - enabled: true  
17 - allow: # 设置白名单,不填则允许所有访问  
18 - url-pattern: /druid/*  
19 - login-username: # 控制台管理用户名和密码  
20 - login-password:  
21 - filter:  
22 - stat:  
23 - enabled: true  
24 - log-slow-sql: true # 慢 SQL 记录  
25 - slow-sql-millis: 100  
26 - merge-sql: true  
27 - wall:  
28 - config:  
29 - multi-statement-allow: true  
30 - dynamic: # 多数据源配置  
31 - druid: # Druid 【连接池】相关的全局配置  
32 - initial-size: 5 # 初始连接数  
33 - min-idle: 10 # 最小连接池数量  
34 - max-active: 20 # 最大连接池数量  
35 - max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒  
36 - time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒  
37 - min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒  
38 - max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒  
39 - validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效  
40 - test-while-idle: true  
41 - test-on-borrow: false  
42 - test-on-return: false  
43 - primary: master  
44 - datasource:  
45 - master:  
46 - name: ruoyi-vue-pro  
47 - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT  
48 - driver-class-name: com.mysql.jdbc.Driver  
49 - username: root  
50 - password: 123456  
51 - slave: # 模拟从库,可根据自己需要修改  
52 - name: ruoyi-vue-pro  
53 - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT  
54 - driver-class-name: com.mysql.jdbc.Driver  
55 - username: root  
56 - password: 123456  
57 -  
58 - # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优  
59 - redis:  
60 - host: 127.0.0.1 # 地址  
61 - port: 6379 # 端口  
62 - database: 0 # 数据库索引  
63 -  
64 ---- #################### 定时任务相关配置 ####################  
65 -  
66 -# Quartz 配置项,对应 QuartzProperties 配置类  
67 -spring:  
68 - quartz:  
69 - auto-startup: false # 无需使用 Quartz,交给 yudao-admin-server 环境  
70 -  
71 ---- #################### 配置中心相关配置 ####################  
72 -  
73 -# Apollo 配置中心  
74 -apollo:  
75 - bootstrap:  
76 - enabled: true # 设置 Apollo 在启动阶段生效  
77 - eagerLoad:  
78 - enabled: true # 设置 Apollo 在日志初始化前生效,可以实现日志的动态级别配置  
79 - jdbc: # 自定义的 JDBC 配置项,用于数据库的地址  
80 - dao: cn.iocoder.yudao.coreservice.modules.infra.dal.mysql.config.InfConfigCoreDAOImpl  
81 - url: ${spring.datasource.dynamic.datasource.master.url}  
82 - username: ${spring.datasource.dynamic.datasource.master.username}  
83 - password: ${spring.datasource.dynamic.datasource.master.password}  
84 -  
85 ---- #################### 服务保障相关配置 ####################  
86 -  
87 -# Lock4j 配置项  
88 -lock4j:  
89 - acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒  
90 - expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒  
91 -  
92 -# Resilience4j 配置项  
93 -resilience4j:  
94 - ratelimiter:  
95 - instances:  
96 - backendA:  
97 - limit-for-period: 1 # 每个周期内,允许的请求数。默认为 50  
98 - limit-refresh-period: 60s # 每个周期的时长,单位:微秒。默认为 500  
99 - timeout-duration: 1s # 被限流时,阻塞等待的时长,单位:微秒。默认为 5s  
100 - register-health-indicator: true # 是否注册到健康监测  
101 -  
102 ---- #################### 监控相关配置 ####################  
103 -  
104 -# Actuator 监控端点的配置项  
105 -management:  
106 - endpoints:  
107 - web:  
108 - base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator  
109 - exposure:  
110 - include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。  
111 -  
112 -# Spring Boot Admin 配置项  
113 -spring:  
114 - boot:  
115 - admin:  
116 - # Spring Boot Admin Client 客户端的相关配置  
117 - client:  
118 - url: http://127.0.0.1:${server.port}/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址  
119 - instance:  
120 - prefer-ip: true # 注册实例时,优先使用 IP  
121 - # Spring Boot Admin Server 服务端的相关配置  
122 - context-path: /admin # 配置 Spring  
123 -  
124 -# 日志文件配置  
125 -logging:  
126 - file:  
127 - name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径  
128 -  
129 ---- #################### 微信公众号相关配置 ####################  
130 -wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档  
131 - mp:  
132 - # 公众号配置(必填)  
133 - app-id: wx041349c6f39b268b  
134 - secret: 5abee519483bc9f8cb37ce280e814bd0  
135 - # 存储配置,解决 AccessToken 的跨节点的共享  
136 - config-storage:  
137 - type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取  
138 - key-prefix: wx # Redis Key 的前缀 TODO 芋艿:解决下 Redis key 管理的配置  
139 - http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台  
140 -  
141 ---- #################### 芋道相关配置 ####################  
142 -  
143 -# 芋道配置项,设置当前项目所有自定义的配置  
144 -yudao:  
145 - security:  
146 - token-header: Authorization  
147 - token-secret: abcdefghijklmnopqrstuvwxyz  
148 - token-timeout: 1d  
149 - session-timeout: 30m  
150 - mock-enable: true  
151 - mock-secret: test  
152 - file:  
153 - base-path: http://127.0.0.1:${server.port}${yudao.web.api-prefix}/infra/file/get/  
154 - xss:  
155 - enable: false  
156 - exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系  
157 - - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求  
158 - - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求  
159 - demo: false # 关闭演示模式  
160 - pay:  
161 - pay-notify-url: http://jg6rde.natappfree.cc/api/pay/order/notify  
162 - refund-notify-url: http://jg6rde.natappfree.cc/api/pay/refund/notify  
163 - pay-return-url: http://jg6rde.natappfree.cc/api/pay/order/return  
164 -  
165 -justauth:  
166 - enabled: true  
167 - type:  
168 - WECHAT_MP: # 微信公众平台 - 移动端 H5 https://www.yuque.com/docs/share/a795bef6-ee8a-494a-8dc4-2ef41927743b?#%20%E3%80%8A%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7%E6%B5%8B%E8%AF%95%E3%80%8B  
169 - client-id: wxa5a05b85ac361f96  
170 - client-secret: 247073c7cebb67f27f0e769195c2a57e  
171 -# client-id: wx5b23ba7a5589ecbb # TODO 芋艿:自己的测试,后续可以删除  
172 -# client-secret: 2a7b3b20c537e52e74afd395eb85f61f  
173 - ignore-check-redirect-uri: true  
174 - WECHAT_MINI_PROGRAM: # 微信小程序 https://www.yuque.com/docs/share/88e3d30a-6830-45fc-8c25-dae485aef3aa?#%20%E3%80%8A%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%8E%88%E6%9D%83%E7%99%BB%E5%BD%95%E3%80%8B  
175 - client-id: wx44d047d87e6284d8  
176 - client-secret: 21c3b7a8a51ee1b8f5cf875848ed4466  
177 - # client-id: wx63c280fe3248a3e7 # TODO 芋艿:自己的测试,后续可以删除  
178 - # client-secret: 6f270509224a7ae1296bbf1c8cb97aed  
179 - ignore-check-redirect-uri: true  
180 - ignore-check-state: true  
181 - cache:  
182 - type: REDIS  
183 - prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::  
184 - timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟  
yudao-user-server/src/main/resources/application.yaml deleted
1 -spring:  
2 - application:  
3 - name: yudao-user-server  
4 -  
5 - profiles:  
6 - active: local  
7 -  
8 - # Servlet 配置  
9 - servlet:  
10 - # 文件上传相关配置项  
11 - multipart:  
12 - max-file-size: 16MB # 单个文件大小  
13 - max-request-size: 32MB # 设置总上传的文件大小  
14 -  
15 - # Jackson 配置项  
16 - jackson:  
17 - serialization:  
18 - write-dates-as-timestamps: true # 设置 Date 的格式,使用时间戳  
19 - write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401  
20 - write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳  
21 - fail-on-empty-beans: false # 允许序列化无属性的 Bean  
22 -  
23 -  
24 -  
25 -# MyBatis Plus 的配置项  
26 -mybatis-plus:  
27 - configuration:  
28 - map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。  
29 - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印日志  
30 - global-config:  
31 - db-config:  
32 - id-type: AUTO # 自增 ID  
33 - logic-delete-value: 1 # 逻辑已删除值(默认为 1)  
34 - logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)  
35 - mapper-locations: classpath*:mapper/*.xml  
36 - type-aliases-package: ${yudao.info.base-package}.modules.*.dal.dataobject, ${yudao.core-service.base-package}.modules.*.dal.dataobject  
37 -  
38 ---- #################### 芋道相关配置 ####################  
39 -  
40 -yudao:  
41 - info:  
42 - version: 1.0.0  
43 - base-package: cn.iocoder.yudao.userserver  
44 - core-service:  
45 - base-package: cn.iocoder.yudao.coreservice  
46 - web:  
47 - api-prefix: /api  
48 - controller-package: ${yudao.info.base-package}  
49 - swagger:  
50 - title: 管理后台  
51 - description: 提供管理员管理的所有功能  
52 - version: ${yudao.info.version}  
53 - base-package: ${yudao.info.base-package}.modules  
54 - captcha:  
55 - timeout: 5m  
56 - width: 160  
57 - height: 60  
58 - codegen:  
59 - base-package: ${yudao.info.base-package}  
60 - db-schemas: ${spring.datasource.dynamic.datasource.master.name}  
61 - error-code: # 错误码相关配置项  
62 - constants-class-list:  
63 - - cn.iocoder.yudao.userserver.modules.member.enums.MbrErrorCodeConstants  
64 - - cn.iocoder.yudao.userserver.modules.system.enums.SysErrorCodeConstants  
65 -  
66 -debug: false  
yudao-user-server/src/main/resources/banner.txt deleted
1 -芋道源码 http://www.iocoder.cn  
2 -Application Version: ${yudao.info.version}  
3 -Spring Boot Version: ${spring-boot.version}  
4 -  
5 -.__ __. ______ .______ __ __ _______  
6 -| \ | | / __ \ | _ \ | | | | / _____|  
7 -| \| | | | | | | |_) | | | | | | | __  
8 -| . ` | | | | | | _ < | | | | | | |_ |  
9 -| |\ | | `--' | | |_) | | `--' | | |__| |  
10 -|__| \__| \______/ |______/ \______/ \______|  
11 -  
12 -███╗ ██╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗  
13 -████╗ ██║██╔═══██╗ ██╔══██╗██║ ██║██╔════╝  
14 -██╔██╗ ██║██║ ██║ ██████╔╝██║ ██║██║ ███╗  
15 -██║╚██╗██║██║ ██║ ██╔══██╗██║ ██║██║ ██║  
16 -██║ ╚████║╚██████╔╝ ██████╔╝╚██████╔╝╚██████╔╝  
17 -╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝  
yudao-user-server/src/main/resources/logback-spring.xml deleted
1 -<configuration>  
2 - <!-- 引用 Spring Boot 的 logback 基础配置 -->  
3 - <include resource="org/springframework/boot/logging/logback/defaults.xml" />  
4 - <!-- 变量 yudao.info.base-package,基础业务包 -->  
5 - <springProperty scope="context" name="yudao.info.base-package" source="yudao.info.base-package"/>  
6 - <!-- 格式化输出:%d 表示日期,%X{tid} SkWalking 链路追踪编号,%thread 表示线程名,%-5level:级别从左显示 5 个字符宽度,%msg:日志消息,%n是换行符 -->  
7 - <property name="PATTERN_DEFAULT" value="%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%thread] [%tid] %-40.40logger{39} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>  
8 -  
9 - <!-- 控制台 Appender -->  
10 - <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">       
11 - <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">  
12 - <layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">  
13 - <pattern>${PATTERN_DEFAULT}</pattern>  
14 - </layout>  
15 - </encoder>  
16 - </appender>  
17 -  
18 - <!-- 文件 Appender -->  
19 - <!-- 参考 Spring Boot 的 file-appender.xml 编写 -->  
20 - <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">  
21 - <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">  
22 - <layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">  
23 - <pattern>${PATTERN_DEFAULT}</pattern>  
24 - </layout>  
25 - </encoder>  
26 - <!-- 日志文件名 -->  
27 - <file>${LOG_FILE}</file>  
28 - <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">  
29 - <!-- 滚动后的日志文件名 -->  
30 - <fileNamePattern>${LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN:-${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz}</fileNamePattern>  
31 - <!-- 启动服务时,是否清理历史日志,一般不建议清理 -->  
32 - <cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart>  
33 - <!-- 日志文件,到达多少容量,进行滚动 -->  
34 - <maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB}</maxFileSize>  
35 - <!-- 日志文件的总大小,0 表示不限制 -->  
36 - <totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0}</totalSizeCap>  
37 - <!-- 日志文件的保留天数 -->  
38 - <maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory>  
39 - </rollingPolicy>  
40 - </appender>  
41 - <!-- 异步写入日志,提升性能 -->  
42 - <appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">  
43 - <!-- 不丢失日志。默认的,如果队列的 80% 已满,则会丢弃 TRACT、DEBUG、INFO 级别的日志 -->  
44 - <discardingThreshold>0</discardingThreshold>  
45 - <!-- 更改默认的队列的深度,该值会影响性能。默认值为 256 -->  
46 - <queueSize>256</queueSize>  
47 - <appender-ref ref="FILE"/>  
48 - </appender>  
49 -  
50 - <!-- SkyWalking GRPC 日志收集,实现日志中心。注意:SkyWalking 8.4.0 版本开始支持 -->  
51 - <appender name="GRPC" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">  
52 - <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">  
53 - <layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">  
54 - <pattern>${PATTERN_DEFAULT}</pattern>  
55 - </layout>  
56 - </encoder>  
57 - </appender>  
58 -  
59 - <!-- 本地环境 -->  
60 - <springProfile name="local">  
61 - <root level="INFO">  
62 - <appender-ref ref="STDOUT"/>  
63 - <appender-ref ref="GRPC"/> <!-- 本地环境下,如果不想接入 SkyWalking 日志服务,可以注释掉本行 -->  
64 - <appender-ref ref="ASYNC"/> <!-- 本地环境下,如果不想打印日志,可以注释掉本行 -->  
65 - </root>  
66 - </springProfile>  
67 - <!-- 其它环境 -->  
68 - <springProfile name="default">  
69 - <root level="INFO">  
70 - <appender-ref ref="STDOUT"/>  
71 - <appender-ref ref="ASYNC"/>  
72 - <appender-ref ref="GRPC"/>  
73 - </root>  
74 - </springProfile>  
75 -  
76 -</configuration>  
更新日志.md
@@ -30,6 +30,7 @@ TODO 待统计 @@ -30,6 +30,7 @@ TODO 待统计
30 *【新增】代码生成器支持多 Maven Module 的方式生成代码,支持管理后台、用户 APP 两种场景的 RESTful API 的生成,支持 H2 SQL 脚本的生成 30 *【新增】代码生成器支持多 Maven Module 的方式生成代码,支持管理后台、用户 APP 两种场景的 RESTful API 的生成,支持 H2 SQL 脚本的生成
31 *【重构】将数据库文档调整到 tool 模块,更加明确 31 *【重构】将数据库文档调整到 tool 模块,更加明确
32 *【优化】代码生成器的前端展示效果,例如说 Java 包路径合并 32 *【优化】代码生成器的前端展示效果,例如说 Java 包路径合并
  33 +*【移除】将 `yudao-core-service` 模块移除,替换成每个 Maven Module 暴露对应的 `yudao-module-***-api` 模块
33 34
34 ### 🐞 Bug Fixes 35 ### 🐞 Bug Fixes
35 36