EclipseWeb代码开头报错

报错位置:

开头的<%@

错误内容:

Multiple annotations found at this line:
    - The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
     Build Path
    - The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
     Build Path
    - The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
     Build Path

解决方式:

右击项目——BuildPath——Configure build path...——Add Library——Server runtime——Apache Tomcat v9.0

猜你喜欢

转载自blog.csdn.net/qq_41604656/article/details/82830704