background:
In a traditional project eclipse, native servlet, HttpServlet below the red line burst.
A look at the following screenshot:
Solution:
table of Contents
Right-click the Project Build Path> Configure Build Path
Ctrl + Shift + O, solve HttpServlet burst red line
Step1、
Right-click the Project Build Path> Configure Build Path
Step2、
Add Library
Step3、
Server Runtime
Step4、
Select a server runtime
Step5、
Apply
Step6、
Ctrl + Shift + O, solve HttpServlet burst red line
--
This article is just to share it.
Although now with IntelliJ IDEA, but the eclipse is this little problem would still have to have to drop!