From d37f064297c79a09d0f1c6963688dc3c34ab1f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=98=8E=E5=AF=8C?= Date: Mon, 28 Mar 2022 21:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=AD=E5=BB=BAspringmvc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 127 +++++++++++++++++++++++++++++ web/WEB-INF/applicationContext.xml | 6 ++ web/WEB-INF/dispatcher-servlet.xml | 6 ++ web/WEB-INF/web.xml | 22 +++++ 4 files changed, 161 insertions(+) create mode 100644 pom.xml create mode 100644 web/WEB-INF/applicationContext.xml create mode 100644 web/WEB-INF/dispatcher-servlet.xml create mode 100644 web/WEB-INF/web.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..4ebe8cf --- /dev/null +++ b/pom.xml @@ -0,0 +1,127 @@ + + + + 4.0.0 + + com.group3 + group3-springmvc + 1.0-SNAPSHOT + war + + springtest2 Maven Webapp + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + 5.2.19.RELEASE + + + + + junit + junit + 4.11 + test + + + org.springframework + spring-core + ${spring.version} + + + org.springframework + spring-web + ${spring.version} + + + org.springframework + spring-tx + ${spring.version} + + + org.springframework + spring-jdbc + ${spring.version} + + + org.springframework + spring-webmvc + ${spring.version} + + + org.springframework + spring-aop + ${spring.version} + + + org.springframework + spring-context-support + ${spring.version} + + + org.springframework + spring-test + ${spring.version} + + + + + javax.servlet + javax.servlet-api + 4.0.0 + provided + + + javax.servlet.jsp + jsp-api + 2.2 + + + javax.servlet + jstl + 1.2 + + + + + group3-springmvc + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-war-plugin + 3.2.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + + diff --git a/web/WEB-INF/applicationContext.xml b/web/WEB-INF/applicationContext.xml new file mode 100644 index 0000000..142def2 --- /dev/null +++ b/web/WEB-INF/applicationContext.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/web/WEB-INF/dispatcher-servlet.xml b/web/WEB-INF/dispatcher-servlet.xml new file mode 100644 index 0000000..142def2 --- /dev/null +++ b/web/WEB-INF/dispatcher-servlet.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml new file mode 100644 index 0000000..7483b1f --- /dev/null +++ b/web/WEB-INF/web.xml @@ -0,0 +1,22 @@ + + + + contextConfigLocation + /WEB-INF/applicationContext.xml + + + org.springframework.web.context.ContextLoaderListener + + + dispatcher + org.springframework.web.servlet.DispatcherServlet + 1 + + + dispatcher + *.form + + \ No newline at end of file -- Gitee