From 805ddbf2e2645929a9a918b65d76856544a4e076 Mon Sep 17 00:00:00 2001 From: ChengJie1053 <18033291053@163.com> Date: Fri, 26 Jan 2024 11:28:08 +0800 Subject: [PATCH] using commons-lang3 ExceptionUtils instead of commons-lang and remove useless code --- .../rpc/conf/EurekaClientCacheManualRefresher.java | 2 +- .../gateway/config/GatewaySpringConfiguration.scala | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/linkis-commons/linkis-rpc/src/main/java/org/apache/linkis/rpc/conf/EurekaClientCacheManualRefresher.java b/linkis-commons/linkis-rpc/src/main/java/org/apache/linkis/rpc/conf/EurekaClientCacheManualRefresher.java index 4473ceffe0..48d0a0dc45 100644 --- a/linkis-commons/linkis-rpc/src/main/java/org/apache/linkis/rpc/conf/EurekaClientCacheManualRefresher.java +++ b/linkis-commons/linkis-rpc/src/main/java/org/apache/linkis/rpc/conf/EurekaClientCacheManualRefresher.java @@ -17,7 +17,7 @@ package org.apache.linkis.rpc.conf; -import org.apache.commons.lang.exception.ExceptionUtils; +import org.apache.commons.lang3.exception.ExceptionUtils; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.annotation.Autowired; diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewaySpringConfiguration.scala b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewaySpringConfiguration.scala index 52f4d51081..2c57084278 100644 --- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewaySpringConfiguration.scala +++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-core/src/main/scala/org/apache/linkis/gateway/config/GatewaySpringConfiguration.scala @@ -48,16 +48,6 @@ class GatewaySpringConfiguration { TokenAuthentication.setTokenService(tokenService) } - // @Bean(Array("defaultGatewayParser")) - // @ConditionalOnMissingBean - // @Autowired(required = false) - // def createGatewayParser(gatewayParsers: Array[GatewayParser]): DefaultGatewayParser = - // new DefaultGatewayParser(gatewayParsers) - // - // @Bean(Array("defaultGatewayRouter")) - // @ConditionalOnMissingBean - // def createGatewayRouter(): DefaultGatewayParser = new DefaultGatewayRouter - @Bean(Array("userRestful")) @ConditionalOnMissingBean @Autowired(required = false)