开发者社区> 问答> 正文

新建package一运行就报错! ?报错

大神们快来帮帮小弟吧!!!java web项目采用的springMVC+spring+mybatis框架。开发这个项目很久了,框架配置都没问题啊,只是最近在开发新功能时候,需要对应新建一些package,在其下写controller,model,service等,但是只要新建写sql语句用的xml用的package,项目就报错。帮帮小弟吧,急死了,小弟没多少C币,今日助我度难关,一定感激不尽来日涌泉相报!具体报错如下:图片说明图片说明图片说明图片说明图片说明控制台开始报错的第一句话是:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'achievementsController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'achService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.com.framework.Dao.Dao cn.com.kjxx.achievementsNew.service.impl.AchService.dao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in ServletContext resource [/WEB-INF/classes/conf/spring/applicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/classes/conf/spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ServletContext resource [/WEB-INF/classes/conf/ibatis/expert/sqlmapConfig-expert.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/select'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error. Could not initialize class. Cause: java.lang.ClassNotFoundException: tec

展开
收起
爱吃鱼的程序员 2020-06-22 23:40:32 460 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你的mybatits的配置文件配错了啊,看看你xml文件里哪里写了个tec

    cxf-extension-soap.xml初始化失败好好检查一下

    新建的包你在springmvcXML中添加你自动扫描的base-package了没?

    2020-06-22 23:40:49
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Build Your Next ApacheSparkJob 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载