refactor: remove deprecated code

This commit is contained in:
xiaolei 2018-07-14 01:14:10 +08:00
parent 995e35e4d4
commit ec84f3cdee
2 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,6 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import java.util.Objects;
import java.util.ServiceLoader;
@ -43,7 +42,7 @@ public class AdminConfiguration {
@Bean
public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurerAdapter() {
return new WebMvcConfigurer() {
@Override
public void addInterceptors(final InterceptorRegistry registry) {
registry.addInterceptor(new AuthInterceptor()).addPathPatterns("/**");

View File

@ -30,7 +30,7 @@ import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
public class EurekaServerApplication {
public static void main(String[] args) {
new SpringApplicationBuilder(EurekaServerApplication.class).web(true).run(args);
new SpringApplicationBuilder(EurekaServerApplication.class).run(args);
}
}