Intellij idea配置springMvc4.2.6

Spring MVC属于SpringFrameWork的后续产品,已经融合在Spring Web Flow里面。

环境:

Intellij iead 2016.1

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

新建项目

 

目录结构

 

配置web.xml

Web目录下新建目录view将index.jsp移动到view目录下

src目录下新建包com.spring.mvc,新建类名Controller

配置applicationContext.xml

Controllern内容

配置Tomcat

 

 

大功告成~

 

posted @ 2016-05-12 15:26  小手一抖  阅读(2321)  评论(0编辑  收藏  举报