亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

list頁面都打不開了

不知道為什么,我照著這個代碼抄了一遍,結果list頁面都打不開了,配置文件我已經校驗好幾遍了,沒有錯啊??!

Message.xml:

<?xml version="1.0" encoding="UTF-8"?>


<!DOCTYPE mapper

? ? PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"

? ? "http://mybatis.org/dtd/mybatis-3-mapper.dtd">


<mapper namespace="Message">

? <resultMap type="com.imooc.bean.Message" id="MessageResult">

? ? <id column="id" jdbcType="INTEGER" property="id"/>

? ? <result column="COMMAND" jdbcType="VARCHAR" property="command"/>

? ? <result column="CONTENT" jdbcType="VARCHAR" property="content"/>

? ? <result column="DESCRIPTION" jdbcType="VARCHAR" property="description"/>

? </resultMap>

? <select id="queryMessageList" parameterType="com.imooc.bean.Message" ?resultMap="MessageResult">

? ?select ID,COMMAND,DESCRIPTION,CONTENT from message where 1=1?

? ?<if test="command!=null and!&quot;&quot;.equals(command.trim())">and COMMAND=#{command}</if>

? ? <if test="description!=null and!&quot;&quot;.equals(description.trim())">

? ? and DESCRIPTION like '%' #{description} '%'

? ? </if> ?

? </select>

? <delete id="deleteOne" parameterType="int">

? ? ?delete from MESSAGE where ID= #{_parameter}

? </delete>

? <delete id="deleteBatch" parameterType="java.util.List">

? ? ?delete from MESSAGE where ID in(

? ? ?<foreach collection="list" item="item" separator=",">

? ? ?#{item}

? ? ?</foreach>

? ? ?)

? </delete>

</mapper>


web.xml

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5"?

xmlns="http://java.sun.com/xml/ns/javaee"?

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

? <display-name></display-name>

? <welcome-file-list>

? ? <welcome-file>index.jsp</welcome-file>

? </welcome-file-list>

<servlet>

? <servlet-name>ListServlet</servlet-name>

? <servlet-class>com.imooc.servlet.ListServlet</servlet-class>

? </servlet>

? <servlet-mapping>

? <servlet-name>ListServlet</servlet-name>

? <url-pattern>/List.action</url-pattern>

? </servlet-mapping>

??

?<servlet>

? <servlet-name>DeleteOneServlet</servlet-name>

? <servlet-class>com.imooc.servlet.DeleteOneServlet</servlet-class>

? </servlet>

? <servlet-mapping>

? <servlet-name>DeleteOneServlet</servlet-name>

? <url-pattern>/DeleteOneServlet.action</url-pattern>

? </servlet-mapping>

??

? ?<servlet>

? <servlet-name>DeleteBatchServlet</servlet-name>

? <servlet-class>com.imooc.servlet.DeleteBatchServlet</servlet-class>

? </servlet>

? <servlet-mapping>

? <servlet-name>DeleteBatchServlet</servlet-name>

? <url-pattern>/DeleteBatchServlet.action</url-pattern>

? </servlet-mapping>

</web-app>

??



正在回答

1 回答

控制臺沒有報錯,頁面上報的404

0 回復 有任何疑惑可以回復我~
#1

qq_趙成冬_0 提問者

解決了已經,是xml文件出了問題,我也不知道出在哪里,總之又寫了一遍解決了
2016-08-22 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

list頁面都打不開了

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號