AnnotationHandlerMapping « MVC « Spring Q&A





1. Spring AnnotationHandlerMapping not working    stackoverflow.com

I'm new to spring controllers using annotated controllers. Here is my configuration Bean definition

<bean
 class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
Controller
package learn.web.controller.annotation;

import javax.servlet.http.HttpServletRequest;

import learn.web.controller.BaseController;

import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class FirstController extends BaseController {

    @RequestMapping("/annotation/first.ftl")
  ...