Jars not copied to Tomcat's lib folder

前端 未结 4 2208
北荒
北荒 2020-12-13 01:25

I am doing some basic spring stuff and stuck at some point. I am getting ClassNotFoundException whenever I deploy my application on Tomcat.

I observed

4条回答
  •  旧巷少年郎
    2020-12-13 01:58

    You run three command in cmd or bash(where your pom.xml file placed) to get jar file and copy it into your WEB-INF/lib folder

    mvn compile
    mvn package
    mvn install
    

    I find only this way for resolved my problem:

    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
    

提交回复
热议问题