spring-boot-starter-parent 1.3.6.RELEASE

2016-11-17 23:43:17.979 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'readSqlSessionFactory'
2016-11-17 23:43:17.979 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'readSqlSessionFactory'
2016-11-17 23:43:17.979 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'myBatisConfig'
2016-11-17 23:43:17.979 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'myBatisConfig'
2016-11-17 23:43:17.979 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Eagerly caching bean 'myBatisConfig' to allow for resolving potential circular references
2016-11-17 23:43:17.979 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Finished creating instance of bean 'myBatisConfig'
2016-11-17 23:43:17.986 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'readDataSource'
2016-11-17 23:43:17.986 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'readDataSource'
2016-11-17 23:43:17.986 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Returning cached instance of singleton bean 'myBatisConfig'
2016-11-17 23:43:17.987 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [environmentProperties]
2016-11-17 23:43:17.987 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [servletConfigInitParams]
2016-11-17 23:43:17.987 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [servletContextInitParams]
2016-11-17 23:43:17.988 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [systemProperties]
2016-11-17 23:43:17.988 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [systemEnvironment]
2016-11-17 23:43:17.988 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [random]
2016-11-17 23:43:17.988 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.driverClassName' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.988 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.driverClassName' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value 'com.mysql.jdbc.Driver'
2016-11-17 23:43:17.988 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.driverClassName' in [environmentProperties] with type [String] and value 'com.mysql.jdbc.Driver'
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [environmentProperties]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [servletConfigInitParams]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [servletContextInitParams]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [systemProperties]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [systemEnvironment]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [random]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.url' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.url' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value 'jdbc:mysql://139.196.197.182:3306/safety?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull'
2016-11-17 23:43:17.989 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.url' in [environmentProperties] with type [String] and value 'jdbc:mysql://139.196.197.182:3306/safety?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull'
2016-11-17 23:43:17.990 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [environmentProperties]
2016-11-17 23:43:17.990 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [servletConfigInitParams]
2016-11-17 23:43:17.990 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [servletContextInitParams]
2016-11-17 23:43:17.990 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [systemProperties]
2016-11-17 23:43:17.990 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [systemEnvironment]
2016-11-17 23:43:17.990 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [random]
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.username' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.username' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value 'root'
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.username' in [environmentProperties] with type [String] and value 'root'
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [environmentProperties]
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [servletConfigInitParams]
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [servletContextInitParams]
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [systemProperties]
2016-11-17 23:43:17.991 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [systemEnvironment]
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [random]
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.jdbc.password' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.password' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value 'jcpt'
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.jdbc.password' in [environmentProperties] with type [String] and value 'jcpt'
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [environmentProperties]
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [servletConfigInitParams]
2016-11-17 23:43:17.992 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [servletContextInitParams]
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [systemProperties]
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [systemEnvironment]
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [random]
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.minPoolSize' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.cpool.minPoolSize' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value '1'
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.cpool.minPoolSize' in [environmentProperties] with type [String] and value '1'
2016-11-17 23:43:17.996 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [environmentProperties]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [servletConfigInitParams]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [servletContextInitParams]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [systemProperties]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [systemEnvironment]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [random]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.maxPoolSize' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.cpool.maxPoolSize' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value '2'
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.cpool.maxPoolSize' in [environmentProperties] with type [String] and value '2'
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [environmentProperties]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [servletConfigInitParams]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [servletContextInitParams]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [systemProperties]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [systemEnvironment]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [random]
2016-11-17 23:43:17.997 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Searching for key 'spring.datasource.r.cpool.checkoutTimeout' in [applicationConfig: [classpath:/application-dev.properties]]
2016-11-17 23:43:17.999 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.cpool.checkoutTimeout' in [applicationConfig: [classpath:/application-dev.properties]] with type [String] and value '60000'
2016-11-17 23:43:17.999 DEBUG 3944 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Found key 'spring.datasource.r.cpool.checkoutTimeout' in [environmentProperties] with type [String] and value '60000'
2016-11-17 23:43:17.999 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Eagerly caching bean 'readDataSource' to allow for resolving potential circular references
2016-11-17 23:43:18.000 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'dataSourceInitializer'
2016-11-17 23:43:18.000 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'dataSourceInitializer'
2016-11-17 23:43:18.000 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$DataSourceInitializerConfiguration'
2016-11-17 23:43:18.000 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$DataSourceInitializerConfiguration'
2016-11-17 23:43:18.001 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Eagerly caching bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$DataSourceInitializerConfiguration' to allow for resolving potential circular references
2016-11-17 23:43:18.001 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Finished creating instance of bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$DataSourceInitializerConfiguration'
2016-11-17 23:43:18.001 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Eagerly caching bean 'dataSourceInitializer' to allow for resolving potential circular references
2016-11-17 23:43:18.001 DEBUG 3944 --- [ main] o.s.b.f.annotation.InjectionMetadata : Processing injected element of bean 'dataSourceInitializer': AutowiredFieldElement for private org.springframework.context.ConfigurableApplicationContext org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.applicationContext
2016-11-17 23:43:18.002 DEBUG 3944 --- [ main] o.s.b.f.annotation.InjectionMetadata : Processing injected element of bean 'dataSourceInitializer': AutowiredFieldElement for private org.springframework.boot.autoconfigure.jdbc.DataSourceProperties org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.properties
2016-11-17 23:43:18.002 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'spring.datasource.CONFIGURATION_PROPERTIES'
2016-11-17 23:43:18.002 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'spring.datasource.CONFIGURATION_PROPERTIES'
2016-11-17 23:43:18.002 DEBUG 3944 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Eagerly caching bean 'spring.datasource.CONFIGURATION_PROPERTIES' to allow for resolving potential circular references
2016-11-17 23:43:18.004 ERROR 3944 --- [ main] o.s.boot.SpringApplication : Error handling failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'readDataSource' defined in class path resource [com/feizhou/safety/web/config/MyBatisConfig.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.jdbc.DataSourceProperties org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES': Initialization of bean failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1147d0 has not been refreshed yet
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:783) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:411) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:228) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:185) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.finished(EventPublishingRunListener.java:98) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener(SpringApplicationRunListeners.java:79) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.finished(SpringApplicationRunListeners.java:72) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:827) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:317) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at com.feizhou.safety.web.Application.main(Application.java:12) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_65]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) [idea_rt.jar:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.jdbc.DataSourceProperties org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES': Initialization of bean failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1147d0 has not been refreshed yet
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:220) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:351) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:332) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerPostProcessor.postProcessAfterInitialization(DataSourceInitializerPostProcessor.java:62) ~[spring-boot-autoconfigure-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
... 37 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.jdbc.DataSourceProperties org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES': Initialization of bean failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1147d0 has not been refreshed yet
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
... 50 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES': Initialization of bean failed; nested exception is java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1147d0 has not been refreshed yet
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.resolvedCachedArgument(AutowiredAnnotationBeanPostProcessor.java:508) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$200(AutowiredAnnotationBeanPostProcessor.java:115) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:538) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
... 52 common frames omitted
Caused by: java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1147d0 has not been refreshed yet
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1041) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.context.support.GenericApplicationContext.getAutowireCapableBeanFactory(GenericApplicationContext.java:285) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:249) ~[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$LocalValidatorFactory.run(ConfigurationPropertiesBindingPostProcessor.java:441) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.getValidator(ConfigurationPropertiesBindingPostProcessor.java:375) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.determineValidator(ConfigurationPropertiesBindingPostProcessor.java:358) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:317) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:289) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
... 60 common frames omitted

 

时间: 2024-08-03 21:33:35

spring-boot-starter-parent 1.3.6.RELEASE的相关文章

Spring Boot:定制自己的starter

在学习Spring Boot的过程中,接触最多的就是starter.可以认为starter是一种服务--使得使用某个功能的开发者不需要关注各种依赖库的处理,不需要具体的配置信息,由Spring Boot自动通过classpath路径下的类发现需要的Bean,并织入bean.举个例子,spring-boot-starter-jdbc这个starter的存在,使得我们只需要在BookPubApplication下用@Autowired引入DataSource的bean就可以,Spring Boot会

Spring Boot的自动配置、Command-line Runner

接下来关于SpringBoot的一系列文章和例子,都来自<Spring Boot Cookbook>这本书,本文的主要内容是start.spring.io的使用.Spring Boot的自动配置以及CommandRunner的角色和应用场景. 1. start.spring.io的使用 首先带你浏览http://start.spring.io/,在这个网址中有一些Spring Boot提供的组件,然后会给你展示如何让你的Spring工程变得"Bootiful",我称之为&q

玩转spring boot——ajax跨域

前言  java语言在多数时,会作为一个后端语言,为前端的php,node.js等提供API接口.前端通过ajax请求去调用java的API服务.今天以node.js为例,介绍两种跨域方式:CrossOrigin和反向代理.    一.准备工作   pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.

深入Spring Boot:那些注入不了的Spring占位符(${}表达式)

Spring里的占位符 spring里的占位符通常表现的形式是: <bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"> <property name="url" value="${jdbc.url}"/> </bean> 或者 @Confi

Spring Boot 快速入门

Spring Boot官方介绍 Spring Boot makes it easy to create Spring-powered, production-grade applications and services with absolute minimum fuss. It takes an opinionated view of the Spring platform so that new and existing users can quickly get to the bits

5.10. Spring boot with Session share

5.10.1. Redis 5.10.1.1. Maven 增加下面代码到pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <groupId>org.springfra

5.28. Spring boot with Elasticsearch 5.5.x

Spring data 目前还不支持 Elasticsearch 5.5.x 所以需要通过注入 TransportClient 这就意味着使用 5.5.x 版本你无法使用 ElasticsearchRepository 这种特性,只能通过官方的 TransportClient 操作 Elasticsearch. 5.28.1. Maven Elasticsearch 依赖下来四个包 <dependency> <groupId>org.elasticsearch</groupI

5.24. Spring boot with Apache Kafka

Spring boot 1.5.1 5.24.1. 安装 kafka 一下安装仅仅适合开发环境,生产环境请使用这个脚本安装 https://github.com/oscm/shell/tree/master/mq/kafka cd /usr/local/src wget http://apache.communilink.net/kafka/0.10.2.0/kafka_2.12-0.10.2.0.tgz tar zxvf kafka_2.12-0.10.2.0.tgz mv kafka_2.1

2.24. Spring boot with Apache Kafka

Spring boot 1.5.1 2.24.1. 安装 kafka 一下安装仅仅适合开发环境,生产环境请使用这个脚本安装 https://github.com/oscm/shell/tree/master/mq/kafka cd /usr/local/src wget http://apache.communilink.net/kafka/0.10.2.0/kafka_2.12-0.10.2.0.tgz tar zxvf kafka_2.12-0.10.2.0.tgz mv kafka_2.1

【spring boot】7.静态资源和拦截器处理 以及继承WebMvcConfigurerAdapter类进行更多自定义配置

   开头是鸡蛋,后面全靠编!!! ========================================================  1.默认静态资源映射路径以及优先顺序   Spring Boot 默认为我们提供了静态资源处理,使用 WebMvcAutoConfiguration 中的配置各种属性. 建议大家使用Spring Boot的默认配置方式,提供的静态资源映射如下: classpath:/META-INF/resources classpath:/resources