Spring configuration Constructor-arg The error, the property is passed

Source: Internet
Author: User

Information: pre-instantiating singletons in org.s[email protected]366e2eef:defining beans [duke,way,aoptest]; Root of factory hierarchyexception 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:113) at Org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames ( localvariabletableparameternamediscoverer.java:87) 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:293) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:290) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:192) 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 Com.test.Test.main (test.java:13)

Error reason: The version problem with spring is 3.6,JRE is 1.8, the spring to 4.2 is no problem.

Spring configuration Constructor-arg The error, the property is passed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.