error: package javax.servlet does not exist

前端 未结 6 604
鱼传尺愫
鱼传尺愫 2020-12-01 01:39

I was trying to implement a login filter in my web app with jsf 2, following this guide:

https://stackoverflow.com/tags/servlet-filters/info

after I compiled

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 02:15

    I only put this code in my pom.xml and I executed the command maven install.

    
        javax.servlet
        javax.servlet-api
        3.0.1
        provided
    
    

提交回复
热议问题