& lt; ? The XML version="1.0" encoding="utf-8"?>XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" & gt;Net. Sf. The navigator. Menu. MenuContextListener
Org. Springframework. Web. Context. ContextLoaderListener
ContextConfigLocation
The classpath: beans. Xml
Springmvc Org. Springframework. Web. Servlet. DispatcherServlet
ContextConfigLocation
The classpath: for springmvc. Xml
Springmvc *. Do
[/color]Sitemesh Com. Opensymphony. Module. Sitemesh. Filter. PageFilter
Sitemesh *. Do REQUEST FORWARD
Sitemesh *. Jsp REQUEST FORWARD
SpringCharacterEncodingFilter Org. Springframework. Web. Filter. CharacterEncodingFilter
Encoding
Utf-8 & lt;/param - value>
SpringCharacterEncodingFilter *. Do
The controller
package com. Lby. Jxshop. Controller;
The import org. Springframework. Stereotype. The Controller;
The import org. Springframework. Web. Bind. The annotation. RequestMapping;
@ Controller
@ RequestMapping ("/item ")
Public class EbItemController {
@ RequestMapping ("/toIndex. Do ")
Public String toIndex () {
Return "the item/index";
}
}
XML for springmvc.
& lt; ? The XML version="1.0" encoding="utf-8"?>XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance"
XMLNS: MVC="http://www.springframework.org/schema/mvc"
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: aop="http://www.springframework.org/schema/aop"
XMLNS: tx="http://www.springframework.org/schema/tx"
Xsi: schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd "& gt;
Directory hierarchy
To access the results