обновление кода под Spring 5
This commit is contained in:
@@ -13,12 +13,12 @@ import org.springframework.web.context.WebApplicationContext;
|
||||
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
|
||||
import org.springframework.web.servlet.DispatcherServlet;
|
||||
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;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class WebApp {
|
||||
private final String host;
|
||||
private final int port;
|
||||
@@ -29,7 +29,7 @@ public class WebApp {
|
||||
*/
|
||||
@Configuration
|
||||
@EnableWebMvc
|
||||
public static class SpringConfigMVC extends WebMvcConfigurerAdapter {
|
||||
public static class SpringConfigMVC implements WebMvcConfigurer {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user