nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.ConfigurationImpl

前端 未结 4 1064
醉酒成梦
醉酒成梦 2021-01-16 09:55
 public ModelAndView Details(@ModelAttribute(\"\") @Validated App app, BindingResult result, @RequestParam(value=\"paramSessionAttr\", required=false) String session         


        
4条回答
  •  醉梦人生
    2021-01-16 10:05

    I used sts to generate the spring project. I was getting the above error. After spending 2 days, I figured adjusting the version fix the problem.

    In the parent section of pom.xml, I replaced 1.5.4 with 1.2.5

    
        org.springframework.boot
        spring-boot-starter-parent
        1.2.5.RELEASE
      
    

提交回复
热议问题