一、创建项目
1.新建java动态项目
2.在web-inf/lib文件夹下导入jar
3.创建所需要的包和文件
二、搭建SpringMVC
1.配置web.xml(WEB-INF下)
springmvc-spring-ibatis
springDispatcherServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:springmvc/sping.xml
1
springDispatcherServlet
/
字符集过滤
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
字符集编码
encoding
UTF-8
encodingFilter
/*
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
classpath:spring/spring_*.xml
2.在springmvc包里创建“spring,xml”并配置springmvc的配置文件
http://www.springframework.org/schema/beans http://www.springframework