Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/resource/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.ftx.entity.question.QuestionTopic
No identifier specified for entity
QuestionTopic表没有设置主键
如果你也遇到了类似的错误,希望可以帮到你