教育网站制作论文,网站备案用座机租用,定制网站平台的安全设计,程序员在线咨询文章目录 一、编写第一个 Spring MVC 程序 一、编写第一个 Spring MVC 程序 代码示例 创建 maven 项目#xff0c;以此项目为父项目#xff0c;在父项目的 pom.xml 中导入相关依赖 dependenciesdependencygroupIdjunit/groupIdartifactI… 文章目录 一、编写第一个 Spring MVC 程序 一、编写第一个 Spring MVC 程序 代码示例 创建 maven 项目以此项目为父项目在父项目的 pom.xml 中导入相关依赖 dependenciesdependencygroupIdjunit/groupIdartifactIdjunit/artifactIdversion4.12/version/dependencydependencygroupIdorg.springframework/groupIdartifactIdspring-webmvc/artifactIdversion5.1.9.RELEASE/version/dependencydependencygroupIdjavax.servlet/groupIdartifactIdservlet-api/artifactIdversion2.5/version/dependencydependencygroupIdjavax.servlet.jsp/groupIdartifactIdjsp-api/artifactIdversion2.2/version/dependencydependencygroupIdjavax.servlet/groupIdartifactIdjstl/artifactIdversion1.2/version/dependency
/dependencies在父项目上右键创建子项目创建完成之后在子项目上右键选中 Add framework support 找到 Web Application 勾选上 具体步骤 勾选完之后项目会出现 web 目录