diff --git a/sentinel-dashboard/pom.xml b/sentinel-dashboard/pom.xml index e7348829..5d35c2e5 100644 --- a/sentinel-dashboard/pom.xml +++ b/sentinel-dashboard/pom.xml @@ -14,7 +14,7 @@ @ - 2.0.5.RELEASE + 2.2.13.RELEASE 4.0.1 @@ -63,7 +63,7 @@ log4j log4j - 1.2.14 + 1.2.17 diff --git a/sentinel-dashboard/src/test/java/com/alibaba/csp/sentinel/dashboard/config/NoAuthConfigurationTest.java b/sentinel-dashboard/src/test/java/com/alibaba/csp/sentinel/dashboard/config/NoAuthConfigurationTest.java index a6d9fb11..78af4908 100644 --- a/sentinel-dashboard/src/test/java/com/alibaba/csp/sentinel/dashboard/config/NoAuthConfigurationTest.java +++ b/sentinel-dashboard/src/test/java/com/alibaba/csp/sentinel/dashboard/config/NoAuthConfigurationTest.java @@ -20,6 +20,7 @@ import com.alibaba.csp.sentinel.dashboard.auth.FakeAuthServiceImpl; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; +import org.springframework.context.annotation.Primary; import javax.servlet.http.HttpServletRequest; @@ -33,7 +34,8 @@ import javax.servlet.http.HttpServletRequest; public class NoAuthConfigurationTest { @Bean - public AuthService httpServletRequestAuthService() { + @Primary + public AuthService httpServletRequestNoopAuthService() { return new FakeAuthServiceImpl(); }