8000 Adapt to the spring cloud 2020.1 by theonefx · Pull Request #1978 · alibaba/spring-cloud-alibaba · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 17 commits into from
Mar 20, 2021
Merged

Adapt to the spring cloud 2020.1 #1978

merged 17 commits into from
Mar 20, 2021

Conversation

theonefx
Copy link
Collaborator

Adapt to the spring cloud 2020.1

@mostcool
Copy link
Contributor
mostcool commented Mar 8, 2021

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");
Copy link
Collaborator

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?

Copy link
Collaborator Author

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());
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to Chinese comments

Copy link
Collaborator Author

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

@theonefx theonefx merged commit 65417d4 into alibaba:2020.0.0 Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Assignees
No one assigned
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0