upgrade to spring 5, remove extra code

This commit is contained in:
Loredana Crusoveanu
2018-07-08 21:13:41 +03:00
parent e78ca7c830
commit 9c728dbc4f
12 changed files with 16 additions and 180 deletions

View File

@@ -9,13 +9,13 @@ import org.springframework.context.support.MessageSourceResourceBundle;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import org.springframework.web.servlet.view.JstlView;
//@EnableWebMvc
//@Configuration
public class ClientWebConfigJava extends WebMvcConfigurerAdapter {
public class ClientWebConfigJava implements WebMvcConfigurer {
public ClientWebConfigJava() {
super();
@@ -38,8 +38,6 @@ public class ClientWebConfigJava extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
super.addViewControllers(registry);
registry.addViewController("/sample.html");
}