SpringMVCDemo

@Controller + @ResponseBody = @RestController

@Controller returns a "View" "View" has to be resolvd to a "PAGE" by View Resolver. And if ViewResolver is not available, you get 404 error.

@Configuration helps to create configuration file, the way it used to happen in xml file