Tuesday, 15 July 2014

java - org.springframework.beans.factory.BeanCreationException Spring Configuration -


When I try to enable the transaction manager with an annotation in the spring, I get an exception.

A codecourse:

  @configuration @ EnableTransactionManagement @Import (value = {propertyConfiguration.class}) public class AppConfiguration {@Autowired PropertyConfiguration propertyConfiguration; @ Bean Public Emoji Emoji () back to new emo ())}}  

I found this excel:

  org.springframework.beans.factory .BeanCreationException: Error creating bean with name 'org.springframework.aop. Config.internalAutoProxyCreator ': The instantiation of Bean failed; Nested exception org.springframework.beans.BeanInstantiationException: [org.springframework.aop.framework.autoproxy.InfrastructureAdvisorAutoProxyCreator] failed to instantiate: the creator threw an exception; Nested exceptions Java Lung Any method of law: org.springframework.core.CollectionFactory.createConcurrentMapIfPossible (I) Ljava / util / Map; Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean (AbstractAutowireCapableBeanFactory.java:1093) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1038) org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:504) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:476) org.springframework.beans.factory.support.AbstractBeanFactory $ 1.get Object (AbstractBeanFactory.java .33.33) Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java Month 30) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.javaociety99) org.springframework.beans.factory.support .AbstractBeanFactory.getBean (AbstractBeanFactory.java: 199) org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors (Postprocessor RegistryJetajeva 2020) org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors (A BitCast ApplicationsContax.Java.615) org.springframework.context.support.AbstractApplicationContext.refresh (AbstraStupContex. Jawaav 6565) org.springframework.context.annotation.AnnotationConfigApplicationContext. & Lt; Init & gt; (AnnotationConfig applicationsContax.Java: 84)  

Any ideas? Thanks


No comments:

Post a Comment