-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Adapt to the spring cloud 2020.1 #1978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use spring.cloud.version instead of the version number of each component
what's happening? It's been ten days, nothing happened. |
@@ -131,7 +131,7 @@ public void start() { | |||
} | |||
} | |||
catch (MQClientException e) { | |||
logger.error("fetch publish message queues fail", e); | |||
logger.error(e, "fetch publish message queues fail"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for this refactory of exeception logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the 2020 version, Spring uses LogAccessor instead of commons.logging
@@ -59,7 +59,7 @@ public static ConsulAutoRegistration registration( | |||
service.setAddress(sidecarProperties.getIp()); | |||
} | |||
service.setName(normalizeForDns(appName)); | |||
service.setTags(createTags(properties)); | |||
service.setTags(properties.getTags()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Spring Cloud 2020, Consul tags and metadata logic has been changed, please pay attension
* 由于初始化顺序发生变更,这里为了避免循环依赖,只能通过 BeanDefinition 的方式获得 FeignClientFactoryBean | ||
* 需要重点review | ||
*/ | ||
// FeignClientFactoryBean feignClientFactoryBean = (FeignClientFactoryBean) Builder.this.applicationContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to Chinese comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, my mistake, it has been changed to English
Adapt to the spring cloud 2020.1