Skip to content

Commit a0803f4

Browse files
committed
fix: launch failed
1 parent 8b210d9 commit a0803f4

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

backend/api-gateway/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
<artifactId>spring-boot-starter-web</artifactId>
3434
<groupId>org.springframework.boot</groupId>
3535
</exclusion>
36+
<exclusion>
37+
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
38+
<groupId>org.springframework.ai</groupId>
39+
</exclusion>
3640
</exclusions>
3741
</dependency>
3842
<dependency>
@@ -57,6 +61,12 @@
5761
<dependency>
5862
<groupId>com.baomidou</groupId>
5963
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
64+
<exclusions>
65+
<exclusion>
66+
<groupId>org.springframework.boot</groupId>
67+
<artifactId>spring-boot-starter-web</artifactId>
68+
</exclusion>
69+
</exclusions>
6070
</dependency>
6171
<dependency>
6272
<groupId>com.baomidou</groupId>

backend/api-gateway/src/main/java/com/datamate/gateway/ApiGatewayApplication.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@
77
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
88
import org.springframework.context.annotation.Bean;
99
import org.springframework.context.annotation.ComponentScan;
10+
import org.springframework.context.annotation.FilterType;
11+
import org.springframework.context.annotation.ComponentScan.Filter;
1012

1113
/**
1214
* API Gateway & Auth Service Application
1315
* 统一的API网关和认证授权微服务
1416
* 提供路由、鉴权、限流等功能
1517
*/
1618
@SpringBootApplication
17-
@ComponentScan(basePackages = {"com.datamate"})
19+
@ComponentScan(
20+
basePackages = {"com.datamate"},
21+
excludeFilters = @Filter(
22+
type = FilterType.REGEX,
23+
pattern = "com\\.datamate\\.common\\.infrastructure\\.config\\..*"
24+
)
25+
)
1826
@MapperScan(basePackages = {"com.datamate.**.mapper"})
1927
public class ApiGatewayApplication {
2028

0 commit comments

Comments
 (0)