HttpServlet burst red line

background:

In a traditional project eclipse, native servlet, HttpServlet below the red line burst.


A look at the following screenshot:


Solution:

table of Contents

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




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!

 

 

 

He published 198 original articles · won praise 105 · views 20000 +

Guess you like

Origin blog.csdn.net/frdevolcqzyxynjds/article/details/105005259