org.springframework.boot.SpringApplication - Error handling failed
2018-04-20 13:17:04.603 [main] DEBUG org.springframework.beans.factory.support.D
efaultListableBeanFactory - Creating shared instance of singleton bean 'org.spri
ngframework.transaction.annotation.ProxyTransactionManagementConfiguration'
2018-04-20 13:17:04.603 [main] DEBUG org.springframework.beans.factory.support.D
efaultListableBeanFactory - Creating instance of bean 'org.springframework.trans
action.annotation.ProxyTransactionManagementConfiguration'
2018-04-20 13:17:04.603 [main] DEBUG org.springframework.beans.factory.support.D
efaultListableBeanFactory - Eagerly caching bean 'org.springframework.transactio
n.annotation.ProxyTransactionManagementConfiguration' to allow for resolving pot
ential circular references
2018-04-20 13:17:04.603 [main] DEBUG org.springframework.beans.factory.annotatio
n.InjectionMetadata - Processing injected element of bean 'org.springframework.t
ransaction.annotation.ProxyTransactionManagementConfiguration': AutowiredMethodE
lement for void org.springframework.transaction.annotation.AbstractTransactionMa
nagementConfiguration.setConfigurers(java.util.Collection)
2018-04-20 13:17:04.618 [main] ERROR org.springframework.boot.SpringApplication
- Error handling failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sqlSessionFactory-yxd' defined in class path resource [config/spring-myb
atis.xml]: Cannot resolve reference to bean 'datasource-yxd' while setting bean
property 'dataSource'; nested exception is org.springframework.beans.factory.Bea
nCreationException: Error creating bean with name 'datasource-yxd' defined in cl
ass path resource [config/spring-mybatis.xml]: Initialization of bean failed; ne
sted exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.springframework.transaction.annotation.ProxyTransa
ctionManagementConfiguration': Initialization of bean failed; nested exception i
s org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named
'org.springframework.context.annotation.ConfigurationClassPostProcessor.importR
egistry' is defined
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:482)