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