HttpServlet需要tomcat等.

右键project点开properties>project facets>

在右侧栏的Runtime tab中勾选tomcat或者新建tomcat服务器.

Apply and close.

相关文章: