org.hibernate.DuplicateMappingException: Duplicate class/entity mapping
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping
因为是采用了两个源.cfg.xml的配置,当然也配置了两个SessionFacotory
此处遇到的问题通过了,另外是因为使用了H2,启动时创建无所谓
<property name="hibernate.hbm2ddl.auto">create-drop</property>
替换
<property name="hibernate.hbm2ddl.auto">validate</property>
解决