I am starting with Spring Framework and want to do a HelloWorld with annotatios, I\'ve made it work creating a controller and a view, basic hello work I guess; however, I wa
<mvc:annotation-driven/>
will solve out your problem.
in your disapatcher-servlet.xml, add
<mvc:annotation-driven/>
to enable annotation driven handler mapping.
Please try this
<bean
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
add an entry in dispatcher-servlet.xml
You mapped the path /index.do
in your controller, so you have to access it with the following url: http://localhost/av/index.do
You are missing
<mvc:annotation-driven />
in your config dispatcher-servlet.xml
See here for more info
Try to go through one of my tutorials:
Creation of a simple Controller with java-based config
I hope I will get success with it