搭建springmvc环境配置

1.项目pom.xml文件中导入依赖:
搭建springmvc环境配置

2.新建并配置springmvc.xml文件:
搭建springmvc环境配置

搭建springmvc环境配置

3.配置springmvc核心的servlet 以及配置加载mybatis.xml文件
搭建springmvc环境配置

4.新建一个控制器类:
搭建springmvc环境配置

5.Application Servers中开启服务,Reploy发布项目,浏览器中输入 test.action [这里的]