尼禄阁下 2017-06-08 05:31 采纳率: 100%
浏览 1735
已采纳

新建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

  • 写回答

3条回答 默认 最新

  • lihongbiao0610 2017-06-08 05:36
    关注

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名