JSP页面错误显示

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

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

 

解决步骤: 1右键项目   jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

 

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

 

点击Next          jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

选选中的Apache版本 ,然后Finish,之后Libraries多了如下Apache

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

最后点击Apply and Close,错误解决

 

如果这样还没有解决可能是你的Apache路径发生了变化找不到Apache,找到Apache路径

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

 

如果路径发生改变后会出现这样报错

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w

重新添加Apache即可,如何添加Apache在上一篇文章中有介绍

 

 

相关文章: