idea ----- idea of "can not resolve symbol servlet" solution

Original article link: transmitter >>>>>>>>>>>>>>>>.

The first time you use IntelliJ IDEA I have a problem "can not resolve symbol servlet", the reason for this problem is the lack of servlet-api.jar package caused.
Solution:

  1. Check tomcat package is configured servlet-api.jar
    steps: run-> edit Configuration-> tomcat server- > Unnamed-> configure

    2. Right Item -> open module setting, as shown in FIG.


3.libraries-> + -> Java-> select the path (Tomcat installation directory lib-> tomcat-api.jar)


After completing the no can not resolve symbol servlet tips mistake

Guess you like

Origin www.cnblogs.com/mgblog/p/11588875.html