Idea J的控制台打印的信息如下
DEBUG [RMI TCP Connection(3)-127.0.0.1] - Ignoring bean class loading failure for bean 'com.app.core.context.AppContextUtil#0'
org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [com.app.core.context.AppContextUtil]
for bean with name 'com.app.core.context.AppContextUtil#0'
defined in file [D:\Tools\JavaTools\apache-tomcat-8.5.15\webapps\ROOT\WEB-INF\classes\ApplicationContext-service.xml];
nested exception is java.lang.ClassNotFoundException: com.app.core.context.AppContextUtil
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1328)
at orgsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
....
Caused by: java.lang.ClassNotFoundException: com.app.core.context.AppContextUtil
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at
...
下面的话发现我很二
这个是之前别人的代码一直以为这个类是某个Jar包,百度Google都没有解决
现在,根据错误信息找到该文件
ApplicationContext-service.xml
发现这个类是之前某个人定义的,删除就行了
所以Idea j控制台打印的信息,一定要动脑子去看,不要动不动就百度,以此为戒