错误记录 entity class not found 问题
报错:Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in ServletContext
resource[/WEBINF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException:
entity class not found: com.nit.ssh.entities.User
试了很多次,重建文件,重启服务器和重启编译器eclipse都不行,最后发现是workspace里User.class没加载进去。(ps:不知道为什么重建了这么多边都没编译进去)
解决:https://blog.csdn.net/nokia_lc/article/details/52232113?_t_t_t=0.01457356481987604
看的这篇,发现果然没有这个,现在是改后的
解决