diff --git a/src/springmvc.xml b/src/springmvc.xml index a202e8b..e61a833 100644 --- a/src/springmvc.xml +++ b/src/springmvc.xml @@ -2,24 +2,11 @@ - xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd"> - - - - - - - - - - - diff --git a/web/WEB-INF/view/showFirst.jsp b/web/WEB-INF/view/showFirst.jsp index 3c42d25..fccb36d 100644 --- a/web/WEB-INF/view/showFirst.jsp +++ b/web/WEB-INF/view/showFirst.jsp @@ -1,12 +1,16 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - +<%-- + Created by IntelliJ IDEA. + User: 31402 + Date: 2025/3/23 + Time: 16:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -展示入门程序信息 + 入门程序 -Success! +success! - \ No newline at end of file + diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index 313ae7c..182b4dd 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -1,43 +1,20 @@ - - SpringMVCFirst - - index.html - index.htm - index.jsp - default.html - default.htm - default.jsp - + - springDispatcherServlet + DispatcherServlet org.springframework.web.servlet.DispatcherServlet - contextConfigLocation - classpath:springmvc.xml - 1 - springDispatcherServlet - + DispatcherServlet + / - - - - characterEncodingFilter - org.springframework.web.filter.CharacterEncodingFilter - - encoding - UTF-8 - - - - characterEncodingFilter - /* - - + \ No newline at end of file diff --git a/web/first.jsp b/web/first.jsp index b5ff431..57f730c 100644 --- a/web/first.jsp +++ b/web/first.jsp @@ -1,12 +1,16 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - +<%-- + Created by IntelliJ IDEA. + User: Asus + Date: 2025/3/23 + Time: 14:46 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -入门程序 + 入门程序 hello world - \ No newline at end of file +