File tree Expand file tree Collapse file tree
src/main/java/com/github/cadecode/uniboot/gateway Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 <artifactId >uni-boot-gateway</artifactId >
1515 <description >流量网关</description >
1616
17+ <properties >
18+ <servlet-api .version>2.5</servlet-api .version>
19+ </properties >
20+
1721 <dependencies >
1822 <!-- cloud-->
1923 <dependency >
5256 <groupId >org.springframework.boot</groupId >
5357 <artifactId >spring-boot-configuration-processor</artifactId >
5458 </dependency >
55- <!-- tomcat-->
56- <dependency >
57- <groupId >org.springframework.boot</groupId >
58- <artifactId >spring-boot-starter-tomcat</artifactId >
59- <scope >provided</scope >
60- </dependency >
6159 <!-- test-->
6260 <dependency >
6361 <groupId >org.springframework.boot</groupId >
7472 <groupId >com.github.xiaoymin</groupId >
7573 <artifactId >knife4j-spring-boot-starter</artifactId >
7674 </dependency >
75+ <dependency >
76+ <groupId >javax.servlet</groupId >
77+ <artifactId >servlet-api</artifactId >
78+ <version >${servlet-api.version} </version >
79+ </dependency >
7780
7881 <dependency >
7982 <groupId >com.github.cadecode</groupId >
Original file line number Diff line number Diff line change 33import com .github .cadecode .uniboot .common .core .extension .strategy .StrategyService ;
44import org .springframework .boot .SpringApplication ;
55import org .springframework .boot .autoconfigure .SpringBootApplication ;
6- import org .springframework .boot .builder .SpringApplicationBuilder ;
7- import org .springframework .boot .web .servlet .support .SpringBootServletInitializer ;
86import org .springframework .cloud .client .discovery .EnableDiscoveryClient ;
97import org .springframework .cloud .openfeign .EnableFeignClients ;
108import org .springframework .context .annotation .EnableAspectJAutoProxy ;
1816@ EnableDiscoveryClient
1917@ EnableAspectJAutoProxy (exposeProxy = true )
2018@ SpringBootApplication
21- public class UniGatewayApplication extends SpringBootServletInitializer {
19+ public class UniGatewayApplication {
2220
2321 public static void main (String [] args ) {
2422 SpringApplication .run (UniGatewayApplication .class , args );
2523 }
26-
27- @ Override
28- protected SpringApplicationBuilder configure (SpringApplicationBuilder application ) {
29- return application .sources (UniGatewayApplication .class );
30- }
3124}
You can’t perform that action at this time.
0 commit comments