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

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

<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<!--ORACLE方言
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
-->
<!--<prop key="hibernate.hbm2ddl.auto">update</prop>-->
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.current_session_context_class">
org.springframework.orm.hibernate3.SpringSessionContext</prop>
<prop key="javax.persistence.validation.mode">none</prop>   增加此行配置
</props>
</property>

上一篇:5+ App开发入门指南


下一篇:织梦 dede 笔记