{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/issues/465","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/issues/465/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/issues/465/events","html_url":"https://github.com/spring-cloud/spring-cloud-consul/issues/465","id":379044453,"node_id":"MDU6SXNzdWUzNzkwNDQ0NTM=","number":465,"title":"Invalid bean definition with name 'consulDiscoveryProperties' defined if config.discovery.enabled: true","user":{"login":"daishenghao","id":4860323,"node_id":"MDQ6VXNlcjQ4NjAzMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/4860323?v=4","gravatar_id":"","url":"https://api.github.com/users/daishenghao","html_url":"https://github.com/daishenghao","followers_url":"https://api.github.com/users/daishenghao/followers","following_url":"https://api.github.com/users/daishenghao/following{/other_user}","gists_url":"https://api.github.com/users/daishenghao/gists{/gist_id}","starred_url":"https://api.github.com/users/daishenghao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daishenghao/subscriptions","organizations_url":"https://api.github.com/users/daishenghao/orgs","repos_url":"https://api.github.com/users/daishenghao/repos","events_url":"https://api.github.com/users/daishenghao/events{/privacy}","received_events_url":"https://api.github.com/users/daishenghao/received_events","type":"User","site_admin":false},"labels":[{"id":153210519,"node_id":"MDU6TGFiZWwxNTMyMTA1MTk=","url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"spencergibb","id":594085,"node_id":"MDQ6VXNlcjU5NDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/594085?v=4","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false},"assignees":[{"login":"spencergibb","id":594085,"node_id":"MDQ6VXNlcjU5NDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/594085?v=4","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/milestones/35","html_url":"https://github.com/spring-cloud/spring-cloud-consul/milestone/35","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/milestones/35/labels","id":3831707,"node_id":"MDk6TWlsZXN0b25lMzgzMTcwNw==","number":35,"title":"2.1.0.RC1","description":null,"creator":{"login":"spencergibb","id":594085,"node_id":"MDQ6VXNlcjU5NDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/594085?v=4","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"closed","created_at":"2018-11-19T14:28:08Z","updated_at":"2018-12-11T18:37:28Z","due_on":null,"closed_at":"2018-12-11T18:37:28Z"},"comments":4,"created_at":"2018-11-09T06:53:45Z","updated_at":"2018-12-12T01:36:18Z","closed_at":"2018-12-11T17:37:56Z","author_association":"NONE","body":"Question\r\n\r\nAfter upgrade to spring boot 2.1.0, it appears some question after run instance. \r\nThis instance is a config client that get config from config server by service-id.\r\n\r\nthe code snippet of bootstrap.yml as follows:\r\n![image](https://user-images.githubusercontent.com/4860323/48250156-4f079a80-e438-11e8-9ff4-0a0d77961bd5.png)\r\n\r\n\r\nBug report\r\n```\r\norg.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'consulDiscoveryProperties' defined in org.springframework.cloud.consul.discovery.configclient.ConsulDiscoveryClientConfigServiceBootstrapConfiguration: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=consulDiscoveryClientConfigServiceBootstrapConfiguration; factoryMethodName=consulDiscoveryProperties; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.cloud.consul.discovery.configclient.ConsulDiscoveryClientConfigServiceBootstrapConfiguration] for bean 'consulDiscoveryProperties': There is already [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.cloud.consul.discovery.ConsulDiscoveryClientConfiguration; factoryMethodName=consulDiscoveryProperties; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.cloud.consul.discovery.ConsulDiscoveryClientConfiguration] bound.\r\nat org.springframework.beans.factory.support.DefaultListableBeanFactory.registerBeanDefinition(DefaultListableBeanFactory.java:894) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:274) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:141) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:327) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:691) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:528) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:197) ~[spring-cloud-context-2.1.0.M1.jar:2.1.0.M1]\r\nat org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104) ~[spring-cloud-context-2.1.0.M1.jar:2.1.0.M1]\r\nat org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70) ~[spring-cloud-context-2.1.0.M1.jar:2.1.0.M1]\r\nat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]\r\nat org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:347) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplication.run(SpringApplication.java:306) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) ~[spring-boot-2.1.0.RELEASE.jar:2.1.0.RELEASE]\r\nat com.yq.configclient.ConfigClientApplication.main(ConfigClientApplication.java:21) ~[classes/:na]\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/issues/comments/446428548","html_url":"https://github.com/spring-cloud/spring-cloud-consul/issues/465#issuecomment-446428548","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-consul/issues/465","id":446428548,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQyODU0OA==","user":{"login":"domainname","id":1830237,"node_id":"MDQ6VXNlcjE4MzAyMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1830237?v=4","gravatar_id":"","url":"https://api.github.com/users/domainname","html_url":"https://github.com/domainname","followers_url":"https://api.github.com/users/domainname/followers","following_url":"https://api.github.com/users/domainname/following{/other_user}","gists_url":"https://api.github.com/users/domainname/gists{/gist_id}","starred_url":"https://api.github.com/users/domainname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domainname/subscriptions","organizations_url":"https://api.github.com/users/domainname/orgs","repos_url":"https://api.github.com/users/domainname/repos","events_url":"https://api.github.com/users/domainname/events{/privacy}","received_events_url":"https://api.github.com/users/domainname/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T01:36:18Z","updated_at":"2018-12-12T01:36:18Z","author_association":"NONE","body":"@spencergibb Do you have ETA of RC1?"}}
{"actor":{"display_login":"domainname"}}