juit测试中报错:org.hibernate.HibernateException: Unable to get the default Bean Validation factory

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

解决方法:

解决方案:

在hibernate.cfg.xml中配置的时候 需要这个一个属性:

<property name="javax.persistence.validation.mode">none</property>
posted @ 2016-08-18 22:56  大麦茶fg  阅读(343)  评论(0编辑  收藏  举报