关于springmvc第一个入门程序执行失败Cannot find class以及Line 14 in XML document from class path resource [spring-mv

我个人是看的网课,是b站的一个网课,视频很老的一个,我是跟着里面的老师一步一步敲得,想着根本就没有出错的理由,但是 他还是出错了,就是Cannot find class [com.itheima.controller.FirstController] for bean with name '/firstController' defined in class path resource [springmvc-config.xml]; nested exception is java.lang.ClassNotFoundException: com.itheima.controller.FirstController

这个之后还有就是出现了Line 14 in XML document from class path resource [spring-mvc.xml] is invalid; nested exception is or这么一个错误,后面还跟着什么beans定义啥啥啥的,搜了一下好像是头文件的问题具体的请看这位大哥的Line 14 in XML document from class path resource [spring-mvc.xml] is invalid; nested exception is or-CSDN博客然后错误提示里面就没有这个了,就剩Cannot find class [com.itheima.controller.FirstController] for bean with name '/firstController' defined in class path resource [springmvc-config.xml]; nested exception is java.lang.ClassNotFoundException: com.itheima.controller.FirstController

这个问题了,然后也看了几个帖子,没有什么帮助,直到这位大哥的帖子出现Cannot find class [***] for bean with name ‘***‘ defined in file[***]-CSDN博客完美的解决了我的问题,给大哥点个赞

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值