当在jdk1.8环境下运行spring4以下项目时会报以下错误:
Context initialization failed
java.lang.IllegalArgumentException
at org.springframework.asm.ClassReader.
at org.springframework.asm.ClassReader.
at org.springframework.asm.ClassReader.
at org.springframework.core.type.classreading.SimpleMetadataReader.
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)
解决方法,jdk换成1.7或将spring升级成4以上版本。