hibernate 错误:org.hibernate.HibernateException: Unable to get the default Bean Validation factory

 Hibernate 3.6以上版本会提示错误:

Unable to get the default Bean Validation factory

 

在hibernate.cfg.xml里增加一属性解决:

<property name="javax.persistence.validation.mode">none</property>

本文出自 “JohnFongWEB” 博客,请务必保留此出处http://johnfong.blog.51cto.com/3750743/1005596

你可能感兴趣的:(Hibernate,default,factory)