0

обновление кода под Spring 5

This commit is contained in:
2018-09-23 14:35:19 +03:00
parent 86792b2812
commit 350e80eb6a

View File

@@ -13,12 +13,12 @@ import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet; import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
@RequiredArgsConstructor
@Slf4j @Slf4j
@RequiredArgsConstructor
public class WebApp { public class WebApp {
private final String host; private final String host;
private final int port; private final int port;
@@ -29,7 +29,7 @@ public class WebApp {
*/ */
@Configuration @Configuration
@EnableWebMvc @EnableWebMvc
public static class SpringConfigMVC extends WebMvcConfigurerAdapter { public static class SpringConfigMVC implements WebMvcConfigurer {
} }
/** /**