This is applicationContext file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" default-lazy-init="true">

<context:annotation-config/>
<context:component-scan base-package="mx.itesm.ccm.dia.web"/>

<bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/generarExamen.htm">testGeneratorController</prop>
</props>
</property>
</bean>

<bean class="org.springframework.web.servlet.mvc.annotat ion.DefaultAnnotationHandlerMapping" />

<bean id="testGeneratorController" class="mx.itesm.ccm.dia.web.TestGeneratorControlle r">
</bean>

<bean id="testManager " class="mx.itesm.ccm.dia.web.TestManager ">
</bean>


This is controller:
@Controller
public class TestContoller {
@Autowired
private TestManager manager;

@RequestMapping(value="/admin/test.html" method=RequestMethod.GET)
public ModelAndView HandleRequestInternal(request,response) throws Exception {
...
return null;
}
}

For this it says no handler mapped.

But when I extend AbstractController, remove RequestMapping annotation , create TestContoller Bean and use SimpleUrlHandlerMapping , it works fine.

<bean class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/generarExamen.htm">testGeneratorController</prop>
<prop key="/admin/test.html">testController</prop>
</props>
</property>
</bean>

<bean id="testGeneratorController" class="mx.itesm.ccm.dia.web.TestGeneratorControlle r">

</bean>

<bean id="testController" class="mx.itesm.ccm.dia.web.TestController">
</bean>


<bean class="org.springframework.web.servlet.mvc.annotat ion.DefaultAnnotationHandlerMapping" />

@Controller
public class TestContoller extends AbstractContoller {
@Autowired
private TestManager manager;


public ModelAndView HandleRequestInternal(request,response) throws Exception {
...
return null;
}
}

TestManager is injected properly. It means @controller and @Autowired are working fine. Since @controller and @Autowired are working, I guess its scanning packages properly. But why @RequestMapping in not working?

Please help.......Thanx.