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

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

這個錯誤如何解決???

https://img1.sycdn.imooc.com//5b2f86ca00012bb303620508.jpg


package com.weixin.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
?* 列表頁面初始化控制
?*
?*/
@SuppressWarnings("serial")
public class ListServlet extends HttpServlet {
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
?? ??? ?throws ServletException, IOException {
?? ?// TODO Auto-generated method stub
?? ?req.getRequestDispatcher("/WEB-INF/jsp/back/list.jsp").forward(req, resp);
}
@Override
?? ?protected void doGet(HttpServletRequest req, HttpServletResponse resp)
?? ??? ??? ?throws ServletException, IOException {
?? ??? ?// TODO Auto-generated method stub
?? ??? ?this.doPost(req, resp);
?? ?}
}


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
? <display-name>MicroMessage</display-name>

? <servlet>
????? <servlet-name>ListServlet</servlet-name>
????? <servlet-class>com.weixin.servlet.ListServlet</servlet-class>
? </servlet>
? <servlet-mapping>
???? <servlet-name>ListServlet</servlet-name>
???? <url-pattern>/list</url-pattern>
? </servlet-mapping>
</web-app>

HTTP Status 405 – Method Not Allowed


Type Status Report

Message HTTP method GET is not supported by this URL

Description The method received in the request-line is known by the origin server but not supported by the target resource.


Apache Tomcat/8.5.16


正在回答

2 回答

直接把web.xml的配置文件取消了,用@WebServlet("")注解不就可以了

0 回復(fù) 有任何疑惑可以回復(fù)我~

你的訪問路徑應(yīng)該是:localhost:8080/MicroMessage/list


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

這個錯誤如何解決???

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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