maven构建工程后,运行项目,出现mapping错误

Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found : cn/itcast/cf/domain/Dept.hbm.xml : origin(cn/itcast/cf/domain/Dept.hbm.xm谁有空可以远程给我看一下

不是说Dept.hbm.xml没有找到嘛。你检查这个路径是否有这文件

编写的sessionFactory中.xml文件路径可能写的不对,还有就是你xml文件中的配置可能有问题吧