2015-06-04 01:21:35,306 INFO defaultlistablebeanfactory:577-pre-instantiating singletons in org.s[email protected]64616ca2:defining beans [User,userdao]; Root of Factory hierarchy2015-06-04 01:21:35,308 DEBUG defaultlistablebeanfactory:215-creating gkfx instance of single ton Bean ' user ' 2015-06-04 01:21:35,308 DEBUG defaultlistablebeanfactory:435-creating instance of Bean ' user ' Exception in Thread "main" Java.lang.IllegalArgumentExceptionat org.springframework.asm.classreader.<init> (Unknown Source ) at org.springframework.asm.classreader.<init> (Unknown Source) at org.springframework.asm.classreader.< Init> (Unknown Source) at Org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectClass ( localvariabletableparameternamediscoverer.java:112) at Org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames ( LOCALVARIABLETABLEPARAMETERNAMEDISCOVERER.JAVA:86) at Org.springframework.beans.factory.support.ConstructorResolver.autowiReconstructor (constructorresolver.java:193) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor ( abstractautowirecapablebeanfactory.java:1049) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:953) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:490) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:461) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:295) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:292) at Org.springframework.beans.factory.support.AbstractBeanFactoRy.getbean (abstractbeanfactory.java:194) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:607) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at org.springframework.context.support.classpathxmlapplicationcontext.< Init> (classpathxmlapplicationcontext.java:139) at Org.springframework.context.support.classpathxmlapplicationcontext.<init> ( classpathxmlapplicationcontext.java:83) at Cn.wxy.test.Test.main (test.java:10)
Exception reason: JDK 8 and Spring 3.x do not match, switch to spring 4.x.
Spring website with the new, recommended Maven and gradle two ways to download, direct download Spring Framework jar package is more difficult, the following link is the Spring SVN address.
Click I download (http://repo.springsource.org/libs-release-local/org/springframework/spring/)
Version Conflict bug:spring Framwork 3.x and JDK 8 conflicts
Jdk8+spring 3.x report illegal parameter anomaly IllegalArgumentException