eclipse创建一个SpringMvc的web项目步骤~
工具/原料
电脑、Eclipse
创建项目、配置
1、 1、新建web项目,项目名称cxfWebSerivce(忽略它的名字~)。
2、 2、在项目中,引入Spring的jar包,并且新增spring配置文件。
3、 3、spring的配置文件代码如下:
4、 4、web.xml的配置文件内容:
书写类、页面代码
1、 1、新建一个Controller类,类中的代码:
2、 2、新建返回页面helloWorld.jsp,并将接收到的参数值显示在页面上。