File tree Expand file tree Collapse file tree
src/main/java/com/datamate/gateway Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 77import org .springframework .cloud .gateway .route .builder .RouteLocatorBuilder ;
88import org .springframework .context .annotation .Bean ;
99import 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" })
1927public class ApiGatewayApplication {
2028
You can’t perform that action at this time.
0 commit comments