java.lang.ClassNotFoundException: com.wonders.server.web.InitListener
场景重现:修改数据库中字段并修改相应实体类和Hibernate .hbm.xml文件后, 启动server时出现
解决方法:万能的重启,重启eclipse
2.Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: com.wonders.server.record.model.PassRecord column: TRAIN_BODY_NO (should be mapped with insert="false" update="false")
场景重现:修改数据库中字段并修改相应实体类和Hibernate .hbm.xml文件后, 启动server时出现
解决方法:查看相应Hibernate .hbm.xml文件中字段是否对应正确
3.java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
查看causeby,错误出自两个applicationContext------.xml文件