我个人是看的网课,是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博客完美的解决了我的问题,给大哥点个赞