问题描述
- spring配置错误 求大神
-
严重: 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 [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingNotFoundException
解决方案
Invocation of init method failed在调用初始化函数时失败,
查查<mapping resource=。。。是不是哪里错了
解决方案二:
看下applicationcontext.xml的配置,或者你的构造函数丢出了异常
解决方案三:
MappingNotFoundException
映射文件找不到
解决方案四:
MappingNotFoundException
映射文件找不到
时间: 2024-09-27 23:18:10