当前位置:首页 > 后端开发 > Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm

Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm

7个月前 (05-20)79
用.hbm.xml的Mapping配置方式 根据抛出的异常:Association references unmapped class: com.hcrm.bean.ComplaintInfo,说明你的配置中有一个关联映射,
应该在某个类中,有个声明为ComplainInfo属性,它对com.hcrm.bean.ComplaintInfo有依赖,而你又没有将这个com.hcrm.bean.ComplaintInfo加入到Hibernate的映射配置中,
建议你检查下hibernate.cfg.xml文件,将<mapping class="com.hcrm.bean.ComplaintInfo" />加入sessionFactory的配置内。
总之错误原因在hbm.xml映射文件与对应的bean文件中

作者:雪夜蓝风
来源链接:https://www.cnblogs.com/thesnail/p/3844360.html

标签: 异常

“Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm” 的相关文章

*Android 错误:AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher**

*Android 错误:AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher**

Android 错误:AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher 报错图片...

UncaughtHandler: TinkerUncaughtHandler catch exception:java.lang.IllegalStateException: Two differen

UncaughtHandler: TinkerUncaughtHandler catch exception:java.lang.IllegalStateException: Two differen

         错误日志: 2020-03-02 17:58:14.070 26918-26918/co...

MyEclipse运行tomcat提示严重错误 严重: Error starting endpoint java.lang.Exception: Socket

原因:tomcat要开启的端口被占用了!解决办法:如果你用的是8080端口,请按以下方式查找端口被哪个程序占用了:“开始”--“运行”—“cmd”—“netstat -ano”回车会出现...

svnkit 异常:Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn: E200030: SQLite error

https://stackoverflow.com/questions/16063105/org-tmatesoft-sqljet-core-sqljetexception-busy-e...

com.netflix.zuul.exception.ZuulException: 和 com.netflix.zuul.exception.ZuulException: Forwarding error

今天我报了一个错 com.netflix.zuul.exception.ZuulException:   在网上查了以后在yml里...

android studio 的FAILURE: Build failed with an exception解决办法

android studio 的FAILURE: Build failed with an exception解决办法

关于导入项目、或者从远程pull下来的项目出现”FAILURE: Build failed with an exception”的解决方法:...

记一次Jenkins 打包异常 ERROR: Exception when publishing, exception message [Failure]

记一次Jenkins 打包异常 ERROR: Exception when publishing, exception message [Failure]

今天早上打包一直都没有问题,突然有一次打包突然出现异常现象,如下: ERROR: Exception when publishing, exception message [Fai...

spring springmvc 注解@service 运行时提示找不到这个service的问题

今天测试spring、springmvc、mybatis,分层为dao、service、serviceimpl、controller,在运行的时候提示 1 org.apa...

Android常见异常及解决方法

Android常见异常及解决方法

异常概念        异常是指在程序的运行过程中所出现的错误,这些错误会干扰到指令的正常执行,从而造成程序的异常退出,常见的场...

Android中的Exception总结

在开发中会遇到各种各样的Exception, 现在总结如下: 1.java.lang.NullPointerException 空指针异...