I have what I thought was a simple Spring MVC app. However, I can seem to set the requestMappings correctly. What\'s strange is that the logs show that the url is mapped t
You shouldn't duplicate "/app" in both @RequestMapping and <url-pattern>. That is, your sayHello now is mapped to "/app/app/index". You can write
@RequestMapping(value = "/index", method = RequestMethod.GET)
(Or you can declare DefaultAnnotationHandlerMapping bean in your config and set its allwaysUseFullPath property to true to override default behavior)