ClassNotFoundException: javax.validation.ValidatorFactory

后端 未结 2 1350
北海茫月
北海茫月 2020-12-12 05:00

I am trying to run a Spring MVC application in my local machine through Tomcat, but I am seeing:

NoClassDefFoundError: javax/validation/ValidatorFactory
         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 05:30

    I had the same problem. For 2 months i was trying to find solution.

    There was a error i made. I copied hibernate validator jar and pasted it in java installation directory.

    Now i was using maven which also downloaded the validator jar.

    There where two jars present and so the error arise. The problem was solved accidentally when i reinstalled java in my system.

提交回复
热议问题