how to add the servlet api to my pom.xml

后端 未结 6 828
天涯浪人
天涯浪人 2020-12-17 08:00

How do I add the servlets API to my project\'s pom.xml

mvnrepository.com has lots of servlet api and similarly named projects, that I don\'t know which is the right

6条回答
  •  囚心锁ツ
    2020-12-17 08:20

    We use

    
        javax
        j2ee
        1.4
        provided
    
    

    but if you only need the servlet api you might want to use

    
        javax.servlet
        servlet-api
        ?
        provided
    
    

提交回复
热议问题