Path settings for a web program.
I am learning spring mvc and finding this problem very much annoying.:mad: The problem is with the path setting for the DispatcherServlet. Server cannot find the resource is coming. Basically the mapping with the controller and the path is not set properly.
Please help me to understand, what needs to be remembered when writing a spring mvc controller with @Controller annotation and @RequestMapping.
annotation bassed configuration
@Controller and @Requstmapping are under annotation bassed, spring 2.5 also support annotations, following url helps you to configure
http://static.springsource.org/sprin...ann-controller
You must have these tag in application Config:
<context:annotation-config/>
<context:component-scan base-package="your.package.name"/>