package com.seedapp.springrest.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
@ComponentScan("com.seedapp.springrest.webmvc.rest")
@EnableWebMvc
public class WebAppConfig extends WebMvcConfigurerAdapter {

	@Override
	public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
		configurer.enable();
	}
	
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
	}

	
}

@@ -398,16 +398,18 @@
 gistry;%0A
+//
 import o
@@ -481,16 +481,91 @@
 Adapter;
+%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 %0A%0A@Confi
@@ -640,16 +640,18 @@
 eWebMvc%0A
+//
 public c
@@ -701,17 +701,179 @@
 dapter %7B
-%0A
+ //commented out as WebMvcConfigurerAdapter was deprecated for java 8 WebMvcConfigurer can be directly used%0Apublic class WebAppConfig implements WebMvcConfigurer %7B
 %0A%09@Overr

remove deprecated webmvcconfigureradapter