Hibernate 3.6以上版本在用junit測試時會提示錯誤:
Unable to get the default Bean Validation factory
在hibernate.cfg.xml裏增加一屬性解決:
<property name="javax.persistence.validation.mode">none</property>
Hibernate 3.6以上版本在用junit測試時會提示錯誤:
Unable to get the default Bean Validation factory
在hibernate.cfg.xml裏增加一屬性解決:
<property name="javax.persistence.validation.mode">none</property>