解决办法:更换 spring-cglib-repack-*.*.jar 包
java.lang.ExceptionInInitializerError
at org.springframework.aop.framework.CglibAopProxy.createEnhancer(CglibAopProxy.java:)
at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:)
at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractBeanFactory$.getObject(AbstractBeanFactory.java:)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:)
at inspect.into.spring.ann.b37.Lesson_b37.main(Lesson_b37.java:)
Caused by: java.lang.IllegalArgumentException
at org.springframework.asm.MethodVisitor.<init>(MethodVisitor.java:)
at org.springframework.cglib.core.LocalVariablesSorter.<init>(LocalVariablesSorter.java:)
at org.springframework.cglib.core.CodeEmitter.<init>(CodeEmitter.java:)
at org.springframework.cglib.core.ClassEmitter.begin_method(ClassEmitter.java:)
at org.springframework.cglib.core.EmitUtils.null_constructor(EmitUtils.java:)
at org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:)
at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:)
at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:)
at org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:)
at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:)
at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:)
at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:)
at org.springframework.cglib.proxy.Enhancer.<clinit>(Enhancer.java:)
... more