The import javax.servlet.annotation can not be resolved how to solve

Or to the following tomcat lib directory to find the package, and then in eclipse, right-click the project, select the Java  Build Path> the Libraries> the Add External JARS, find tomcat installation path in your computer, in the common \ lib folder, select "servlet-api.jar", adding click "OK" on the line.
There are problems, then copy servlet-api.jar to the project lib directory is just great.

 

 

Guess you like

Origin www.cnblogs.com/WYF166/p/12105175.html