Error creating bean with name .......Invocation of init method failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.controller.CopierController] from ClassLoader [ParallelWebappClassLoader
  context: ROOT
  delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@123a439b
 

出现这个问题的原因特别逗逼,代码也没有报错,后来发现是缺少了一个依赖。

个人原因

1、缺少必要的jar包(添加了一个jfx依赖)。

也有可能是jar包冲突。

添加一个依赖,或者在jar包中移除一个jar包。

 

你可能感兴趣的:(Error creating bean with name .......Invocation of init method failed)