Exclude servlet-api from test scope Maven

后端 未结 8 1091
刺人心
刺人心 2021-02-13 04:43

I have the following dependency in my pom.xml so that my IDE (IntelliJ) has the servlet-api classes available during compilation, but not provided in the build.



        
8条回答
  •  天命终不由人
    2021-02-13 05:17

    For me same error came. I found old version of Servlet (2.5) existed in my path along with servlet 3.0. Once i remove(exclude) old version my issue solved.

提交回复
热议问题