报错日志如下:

 [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ api-gateway ---
1358 [INFO] Changes detected - recompiling the module!
1359 [INFO] Compiling 18 source files to /builds/biz/api-gateway/api-gateway-gw/target/classes
1360 [INFO] /builds/biz/api-gateway/api-gateway-gw/src/main/java/cn/xxxx/apigateway/filters/global/MyLoadBalancerClientFilter.java: /builds/biz/api-gateway/api-gateway-gw/src/main/java/cn/xxxx/apigateway/filters/global/MyLoadBalancerClientFilter.java uses or overrides a deprecated API.
1361 [INFO] /builds/biz/api-gateway/api-gateway-gw/src/main/java/cn/xxxx/apigateway/filters/global/MyLoadBalancerClientFilter.java: Recompile with -Xlint:deprecation for details.
1362 [INFO] -------------------------------------------------------------
1363 [ERROR] COMPILATION ERROR :
1364 [INFO] -------------------------------------------------------------
1365 [ERROR] /builds/biz/api-gateway/api-gateway-gw/src/main/java/cn/xxxx/apigateway/ApiGatewayApplication.java:[38,39] cannot access javax.servlet.Filter
1366  class file for javax.servlet.Filter not found
1367 [INFO] 1 error
1368 [INFO] -------------------------------------------------------------
1369 [INFO] ------------------------------------------------------------------------
1370 [INFO] Reactor Summary for api-gateway-parent 1.0-SNAPSHOT:

解决办法:

<dependency> 
  <groupId>org.springframework.boot</groupId> 
  <artifactId>spring-boot-starter-web</artifactId> 
</dependency>