第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我在慕課就業(yè)課的springMVC入門學(xué)習(xí)中3-4節(jié)在網(wǎng)頁顯示show.jsp改成test顯示不出Tom的值來報了500的錯誤

我在慕課就業(yè)課的springMVC入門學(xué)習(xí)中3-4節(jié)在網(wǎng)頁顯示show.jsp改成test顯示不出Tom的值來報了500的錯誤

快樂冰冰bing 2019-04-18 13:24:53
<!DOCTYPE?web-app?PUBLIC ?"-//Sun?Microsystems,?Inc.//DTD?Web?Application?2.3//EN" ?"http://java.sun.com/dtd/web-app_2_3.dtd"?> <web-app> ??<display-name>Archetype?Created?Web?Application</display-name> ??<servlet> ????<servlet-name>springmvc</servlet-name> ????<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> ????<init-param> ??????<param-name>contextConfigLocation</param-name> ??????<param-value>classpath:springmvc.xml</param-value> ????</init-param> ??</servlet> ??<servlet-mapping> ????<servlet-name>springmvc</servlet-name> ????<url-pattern>/</url-pattern> ??</servlet-mapping> </web-app><?xml?version="1.0"?encoding="UTF-8"?> <beans?xmlns="http://www.springframework.org/schema/beans" ???????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ???????xsi:schemaLocation="http://www.springframework.org/schema/beans?http://www.springframework.org/schema/beans/spring-beans.xsd"> ????<bean?id="hadlerMappering"?class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> ????<property?name="mappings"> ????????<props> ????????????<prop?key="/test">testHandler</prop> ????????</props> ????</property> </bean> ????<bean?id="testHandler"?class="com.imooc.handler.MyHandler"/> ????<bean?class="org.springframework.web.servlet.view.InternalResourceViewResolver"> ????????<property?name="prefix"?value="/"/> ????????<property?name="suffix"?value=".jsp"/> ????</bean> </beans>package?com.imooc.handler; import?org.springframework.web.servlet.ModelAndView; import?org.springframework.web.servlet.mvc.Controller; public?class?MyHandler?implements?Controller?{ ????@Override ????public?ModelAndView?handleRequest(javax.servlet.http.HttpServletRequest?httpServletRequest,?javax.servlet.http.HttpServletResponse?httpServletResponse)?throws?Exception?{ ????????ModelAndView?modelAndView=new?ModelAndView(); ????????modelAndView.addObject("name","tom"); ????????modelAndView.setViewName("show"); ????????return?modelAndView; ????} }<%@?page?contentType="text/html;charset=UTF-8"?language="java"?%> <%@?page?isELIgnored="false"?%> <html> <head> ????<title>Title</title> </head> <body> ${name} </body> </html>
查看完整描述

1 回答

?
快樂冰冰bing

TA貢獻(xiàn)8條經(jīng)驗 獲得超5個贊

我解決了

查看完整回答
1 反對 回復(fù) 2019-04-18
  • 1 回答
  • 0 關(guān)注
  • 1122 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號