这个问题可以在hibernate.cfg.xml 增加一句
<property name="javax.persistence.validation.mode">none</property>
<property name="javax.persistence.validation.mode">none</property>