org.hibernate.AnnotationException: Use of the same entity name twice: users 出现这个错误,是因为你在使用注解配置实体的时候,使用了两个一样的实体名 请检查实体注解 @Entity(name="users") 是否