{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5269","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5269/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5269/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5269/events","html_url":"https://github.com/spring-projects/spring-boot/issues/5269","id":136977693,"number":5269,"title":"Including devtools in Spring boot throws exception if DataSourceProperties is not initialized","user":{"login":"sachinwalia2k8","id":2308115,"avatar_url":"https://avatars.githubusercontent.com/u/2308115?v=3","gravatar_id":"","url":"https://api.github.com/users/sachinwalia2k8","html_url":"https://github.com/sachinwalia2k8","followers_url":"https://api.github.com/users/sachinwalia2k8/followers","following_url":"https://api.github.com/users/sachinwalia2k8/following{/other_user}","gists_url":"https://api.github.com/users/sachinwalia2k8/gists{/gist_id}","starred_url":"https://api.github.com/users/sachinwalia2k8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachinwalia2k8/subscriptions","organizations_url":"https://api.github.com/users/sachinwalia2k8/orgs","repos_url":"https://api.github.com/users/sachinwalia2k8/repos","events_url":"https://api.github.com/users/sachinwalia2k8/events{/privacy}","received_events_url":"https://api.github.com/users/sachinwalia2k8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-27T22:42:26Z","updated_at":"2016-02-27T22:42:26Z","closed_at":null,"body":"I have noticed this error in Spring Boot 1.3.3 Release only. This wasn't the problem in 1.3.2 and prior. Following is the exception trace that started occurring now. FYI I am not using Spring Boot's method of creating JDBC datasource due to custom encryption around credentials. Instead there is a Spring configuration class that manually composes the instance of HikariCP DataSource.\r\n```\r\n\r\n2016-02-27 13:52:17,257 [ERROR] [Logger::o.s.b.SpringApplication] [Thread::restartedMain] - Application startup failed\r\norg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'inMemoryDatabaseShutdownExecutor' defined in class path resource [org/springframework/boot/devtools/autoconfigure/DevToolsDataSourceAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties]: No qualifying bean of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)\r\n\tat org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:307)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)\r\n\tat com.myapp.MywebApplication.main(MywebApplication.java:23)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)\r\nCaused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)\r\n\t... 24 common frames omitted\r\n\r\n```\r\n\r\n"}}