gpt4 book ai didi

java - AppEngine ChannelAPI 警告 : No file found for:/_ah/channel/connected/

转载 作者:行者123 更新时间:2023-12-01 15:21:00 27 4
gpt4 key购买 nike

在我的 web.xml 中

<servlet>
<servlet-name>channelConnected</servlet-name>
<servlet-class>ChannelConnected</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>channelConnected</servlet-name>
<url-pattern>/_ah/channel/connected</url-pattern>
</servlet-mapping>

我的servlet

public class ChannelConnected extends HttpServlet{

private static final long serialVersionUID = 1L;

protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException{
System.out.println("hello world");
}

}

我总是收到此错误:

WARNING: No file found for: /_ah/channel/connected/

我的请求处理程序出了什么问题?

最佳答案

在 url 模式中添加反斜杠即可使其正常工作。

<url-pattern>/_ah/channel/connected/</url-pattern>

关于java - AppEngine ChannelAPI 警告 : No file found for:/_ah/channel/connected/,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10928048/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com