AreaServiceTest 报错

AreaServiceTest 报错

6月 10, 2020 10:31:42 下午 org.springframework.web.context.support.GenericWebApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\java-code\old_o2o\target\classes\mapper\AreaDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.imooc.o2o.entity.ArqueryAreaea'.  Cause: java.lang.ClassNotFoundException: Cannot find class: com.imooc.o2o.entity.ArqueryAreaea
6月 10, 2020 10:31:42 下午 org.springframework.test.context.TestContextManager prepareTestInstance
严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@33723e30] to prepare test instance [com.imooc.o2o.service.AreaServiceTest@782a4fff]
java.lang.IllegalStateException: Failed to load ApplicationContext

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
好帮手慕小班 2020-06-11 12:04:00

同学你好,根据提示信息:

http://img1.sycdn.imooc.com//climg/5ee1acd00933814707860397.jpg


在spring-dao.xml中无法找到类com.imooc.o2o.entity.ArqueryAreaea,同学对应的ArqueryAreaea-->类名书写是否误,同学可以检查一下。

如果不是这个问题,同学可以尝试将完整的报错信息贴出。

如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师