玲玲乱乱小年华
2018-06-24 19:56
<?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>
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.
直接把web.xml的配置文件取消了,用@WebServlet("")注解不就可以了
你的访问路径应该是:localhost:8080/MicroMessage/list
通过自动回复机器人学Mybatis---基础版
107410 学习 · 786 问题
相似问题