Skip to content

Commit 7faf8f0

Browse files
committed
feat: 抽取服务通用配置功能到 base 模块
1 parent d2e5849 commit 7faf8f0

106 files changed

Lines changed: 319 additions & 274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

example/example_api/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,5 @@
2727
<groupId>org.springframework.cloud</groupId>
2828
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
2929
</dependency>
30-
31-
<dependency>
32-
<groupId>com.github.cadecode</groupId>
33-
<artifactId>uni-boot-framework-api</artifactId>
34-
</dependency>
3530
</dependencies>
3631
</project>

example/example_svc/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
<groupId>com.github.cadecode</groupId>
4949
<artifactId>uni-boot-common-plugin-actuator</artifactId>
5050
</dependency>
51+
<dependency>
52+
<groupId>com.github.cadecode</groupId>
53+
<artifactId>uni-boot-framework-base</artifactId>
54+
</dependency>
5155
<dependency>
5256
<groupId>com.github.cadecode</groupId>
5357
<artifactId>uni-boot-example-api</artifactId>

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/DLCacheController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.cadecode.uniboot.example.svc.controller;
22

33
import com.github.cadecode.uniboot.common.plugin.cache.consts.CacheConst;
4-
import com.github.cadecode.uniboot.framework.api.annotation.ApiFormat;
4+
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
55
import io.swagger.annotations.Api;
66
import io.swagger.annotations.ApiOperation;
77
import lombok.RequiredArgsConstructor;

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/DynamicDsController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.cadecode.uniboot.example.svc.controller;
22

33
import com.baomidou.dynamic.datasource.annotation.DS;
4-
import com.github.cadecode.uniboot.framework.api.annotation.ApiFormat;
4+
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
55
import io.swagger.annotations.Api;
66
import io.swagger.annotations.ApiOperation;
77
import lombok.RequiredArgsConstructor;

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/DynamicTpController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.github.cadecode.uniboot.example.svc.controller;
22

3-
import com.github.cadecode.uniboot.framework.api.annotation.ApiFormat;
3+
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
44
import io.swagger.annotations.Api;
55
import io.swagger.annotations.ApiOperation;
66
import lombok.RequiredArgsConstructor;

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/RpcExampleController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.cadecode.uniboot.example.svc.controller;
22

3-
import com.github.cadecode.uniboot.framework.api.annotation.ApiFormat;
43
import com.github.cadecode.uniboot.framework.api.feignclient.ExampleClient;
4+
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
55
import io.swagger.annotations.Api;
66
import io.swagger.annotations.ApiOperation;
77
import lombok.RequiredArgsConstructor;

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/SpringRetryController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.github.cadecode.uniboot.example.svc.controller;
22

3-
import com.github.cadecode.uniboot.framework.api.annotation.ApiFormat;
3+
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
44
import io.swagger.annotations.Api;
55
import io.swagger.annotations.ApiOperation;
66
import lombok.RequiredArgsConstructor;

example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/controller/TtlExecutorController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.alibaba.ttl.TransmittableThreadLocal;
44
import com.alibaba.ttl.threadpool.TtlExecutors;
5-
import com.github.cadecode.uniboot.framework.api.annotation.ApiFormat;
5+
import com.github.cadecode.uniboot.framework.base.annotation.ApiFormat;
66
import io.swagger.annotations.Api;
77
import io.swagger.annotations.ApiOperation;
88
import lombok.RequiredArgsConstructor;

framework/framework_api/pom.xml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,18 @@
2626
<groupId>org.springframework.cloud</groupId>
2727
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
2828
</dependency>
29-
<!--Security-->
30-
<dependency>
31-
<groupId>org.springframework.boot</groupId>
32-
<artifactId>spring-boot-starter-security</artifactId>
33-
</dependency>
3429

3530
<dependency>
3631
<groupId>com.github.cadecode</groupId>
3732
<artifactId>uni-boot-common-core</artifactId>
3833
</dependency>
39-
<dependency>
40-
<groupId>com.github.cadecode</groupId>
41-
<artifactId>uni-boot-common-plugin-swagger</artifactId>
42-
</dependency>
4334
<dependency>
4435
<groupId>com.github.cadecode</groupId>
4536
<artifactId>uni-boot-common-plugin-log</artifactId>
4637
</dependency>
47-
<dependency>
48-
<groupId>com.github.cadecode</groupId>
49-
<artifactId>uni-boot-common-plugin-mybatis</artifactId>
50-
</dependency>
51-
<dependency>
52-
<groupId>com.github.cadecode</groupId>
53-
<artifactId>uni-boot-common-plugin-datasource</artifactId>
54-
</dependency>
5538
<dependency>
5639
<groupId>com.github.cadecode</groupId>
5740
<artifactId>uni-boot-common-plugin-cache</artifactId>
5841
</dependency>
59-
<dependency>
60-
<groupId>com.github.cadecode</groupId>
61-
<artifactId>uni-boot-common-plugin-concurrent</artifactId>
62-
</dependency>
6342
</dependencies>
6443
</project>

framework/framework_base/pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.github.cadecode</groupId>
8+
<artifactId>uni-boot-framework</artifactId>
9+
<version>2023.1.0</version>
10+
</parent>
11+
12+
<artifactId>uni-boot-framework-base</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>net.dreamlu</groupId>
17+
<artifactId>mica-auto</artifactId>
18+
<scope>provided</scope>
19+
</dependency>
20+
<!--Security-->
21+
<dependency>
22+
<groupId>org.springframework.boot</groupId>
23+
<artifactId>spring-boot-starter-security</artifactId>
24+
</dependency>
25+
26+
<dependency>
27+
<groupId>com.github.cadecode</groupId>
28+
<artifactId>uni-boot-framework-api</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.github.cadecode</groupId>
32+
<artifactId>uni-boot-common-plugin-mybatis</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>com.github.cadecode</groupId>
36+
<artifactId>uni-boot-common-plugin-datasource</artifactId>
37+
</dependency>
38+
<dependency>
39+
<groupId>com.github.cadecode</groupId>
40+
<artifactId>uni-boot-common-plugin-concurrent</artifactId>
41+
</dependency>
42+
<dependency>
43+
<groupId>com.github.cadecode</groupId>
44+
<artifactId>uni-boot-common-plugin-swagger</artifactId>
45+
</dependency>
46+
</dependencies>
47+
48+
</project>

0 commit comments

Comments
 (0)