你的位置:首页 > 软件开发 > Java > SpringMVC_HelloWorld_02

SpringMVC_HelloWorld_02

发布时间:2016-06-06 17:00:21
通过注解的方式实现一个简单的HelloWorld。一、新建项目同SpringMVC_HelloWorld_01二、配置文件1、配置web.<??><web-app ="http://www.w3.org/2001/ ="http://jav ...

通过注解的方式实现一个简单的HelloWorld。

一、新建项目

SpringMVC_HelloWorld_01

二、配置文件

1、配置web.
<??><web-app ="http://www.w3.org/2001/  ="http://java.sun.com/  xsi:schemaLocation="http://java.sun.com/  id="WebApp_ID" version="3.0">  <!-- The front controller of this Spring Web application, responsible for     handling all application requests -->  <servlet>    <servlet-name>springmvc</servlet-name>    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>    <load-on-startup>1</load-on-startup>  </servlet>  <!-- Map all requests to the DispatcherServlet for handling -->  <servlet-mapping>    <servlet-name>springmvc</servlet-name>    <url-pattern>/</url-pattern>  </servlet-mapping></web-app>

原标题:SpringMVC_HelloWorld_02

关键词:Spring

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录