Following are the important points about HelloWeb-servlet.xml file:
The [servlet-name]-servlet.xml file will be used to create the beans defined, overriding the
definitions of any beans defined with the same name in the global scope.
The <context:component-scan...> tag will be use to activate Spring MVC annotation scanning
capability which allows to make use of annotations like @Controller and @RequestMapping
etc.
The InternalResourceViewResolver will have rules defined to resolve the view names. As per
the above defined rule, a logical view named hello is delegated to a view implementation
located at/WEB-INF/jsp/hello.jsp .
Next section will show you how to create your actual components ie. Controller, Model and View
The [servlet-name]-servlet.xml file will be used to create the beans defined, overriding the
definitions of any beans defined with the same name in the global scope.
The <context:component-scan...> tag will be use to activate Spring MVC annotation scanning
capability which allows to make use of annotations like @Controller and @RequestMapping
etc.
The InternalResourceViewResolver will have rules defined to resolve the view names. As per
the above defined rule, a logical view named hello is delegated to a view implementation
located at/WEB-INF/jsp/hello.jsp .
Next section will show you how to create your actual components ie. Controller, Model and View