Hi all,
I'm trying to get the Annotation based configuration to work correctly, but sometimes I run into quite some trouble. I have the following class that should handle the serving of some static content, so they just return a ModelAndView, without doing much:
It seems to work fine as it gives me the following output upon start:Code:package bla. webapp. controller; @Controller public class StaticController { @RequestMapping("/welcome") public ModelAndView welcome(){ return new ModelAndView("welcome"); } }
But then, when calling the page, it just gives me a 404 errorCode:DEBUG [main] DefaultAnnotationHandlerMapping.registerHandler(323) | Mapped URL path [/welcome] onto handler [bla. webapp. controller. StaticController @ 6803514a] DEBUG [main] DefaultAnnotationHandlerMapping. registerHandler(323) | Mapped URL path [/welcome.*] onto handler [bla. webapp. controller. StaticController @ 6803514a]
Any idea on where to go?



Reply With Quote
