Bootstrap

maven 工程使用run as myeclipse server application 报错的解决方案

报错入下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/wanwan/domain/User.hbm.xml
解决方法:
修改一个.java文件,然后ctr+s.
不行的话,选择 “Project”->“build Authomatically”确保选中。

;