天天看點

建立Maven項目報錯:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

建立Maven項目報錯:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

建立Maven項目後報錯,The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

解決方法:

項目上右擊滑鼠,選擇 Build Path => Configure Build Path,彈出下面的菜單。

建立Maven項目報錯:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

點選Server Runtime

建立Maven項目報錯:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
建立Maven項目報錯:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

點選Finish。完成

繼續閱讀