maven搭建SpringMVC项目
2021-01-29
来源:易榕旅网
pom.xml
4.0.0 MavenTest tan.maven.springmvc war 0.0.1-SNAPSHOT tan.maven.springmvc Maven Webapp http://maven.apache.org UTF-8 3.1.1.RELEASE 3.8.1 junit junit ${junitversion} test org.springframework spring-aop ${springversion} jar compile org.springframework spring-asm ${springversion} jar compile org.springframework spring-aspects ${springversion} jar compile
org.springframework spring-beans ${springversion} jar compile org.springframework spring-context ${springversion} jar compile org.springframework spring-context-support ${springversion} jar compile org.springframework spring-core ${springversion} jar compile org.springframework spring-expression ${springversion} jar compile org.springframework spring-jdbc ${springversion} jar compile
org.springframework spring-jms ${springversion} jar compile org.springframework spring-orm ${springversion} jar compile org.springframework spring-oxm ${springversion} jar compile org.springframework spring-tx ${springversion} jar compile org.springframework spring-web ${springversion} jar compile org.springframework spring-webmvc ${springversion} jar compile org.springframework spring-test ${springversion} jar compile javax.servlet jstl 1.2 jar compile commons-collections commons-collections 3.1 commons-logging commons-logging 1.1 tan-springmvc-book
applicationContext.xml
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-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/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd\">
web.xml
index.jsp org.springframework.web.util.Log4jConfigListener
book org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/applicationContext.xml 1
org.springframework.web.context.ContextLoaderListener book /