如果启动tomcat时,出现了这个浏览器出现了javax.servlet.ServletException: Servlet.init() for servlet [DispatcherServlet] threw exception和后台出现了Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/log/LogDelegateFactory

首先,要看一下是不是spring-mvc.xml的配置注解驱动,是否导入错了或者看一下内部资源视图解析器的bean是否正确.

当这些检查没有问题还是出现了错误,我们就看一下pom.xml的spring-webmvc是否比spring-context高,我这里就是高了,也是出现错误的主要原因!

我就把webmvc改成spring-context一样的版本!success 哈哈

我是小白,有很多不足.望大佬们不要喷我^_^,我也只是分享一些不是很高深的问题,但有时候又很浪费事件的异常^_^,仔细看了自己写的代码完全没有问题,但就是找不原因😭.
仅仅为了一些不是很重要操作,浪费了宝贵时间这太太太不划算了

posted on 2020-09-03 19:56  阿久569  阅读(198)  评论(0)    收藏  举报