我将弹簧版本从3.1.0更新为4.3.0
时出现此错误 Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.springframework.security.config.method.InternalInterceptMethodsBeanDefinitionDecorator.createInterceptorDefinition(Lorg/w3c/dom/Node;)Lorg/springframework/beans/factory/config/BeanDefinition;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/springframework/security/config/method/InternalInterceptMethodsBeanDefinitionDecorator, and its superclass loader (instance of sun/misc/Launcher$AppClassLoader), have different Class objects for the type ork.security.config.method.InternalInterceptMethodsBeanDefinitionDecorator.createInterceptorDefinition(Lorg/w3c/dom/Node;)Lorg/springframework/beans/factory/config/BeanDefinition; used in the signature
at org.springframework.security.config.method.InterceptMethodsBeanDefinitionDecorator.<init>(InterceptMethodsBeanDefinitionDecorator.java:45)
at org.springframework.security.config.SecurityNamespaceHandler.<init>(SecurityNamespaceHandler.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 31 more
旧罐
新罐子