001package org.lanyonm.playground.config; 002 003import org.springframework.context.annotation.ComponentScan; 004import org.springframework.context.annotation.Configuration; 005import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; 006import org.springframework.web.servlet.config.annotation.EnableWebMvc; 007import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; 008 009/** 010 * All the web app configuration happens here 011 * 012 * @author lanyonm 013 */ 014@Configuration 015@EnableWebMvc 016@ComponentScan("org.lanyonm.playground.web.controller") 017public class WebConfig extends WebMvcConfigurerAdapter { 018 019 public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) { 020 configurer.enable(); 021 } 022}