Skip to content

remove setCacheBeanMetadata to false, fix Spring @Order not work issue#603

Open
gejun123456 wants to merge 1 commit intoHotswapProjects:masterfrom
gejun123456:fixSpringOrderIssue
Open

remove setCacheBeanMetadata to false, fix Spring @Order not work issue#603
gejun123456 wants to merge 1 commit intoHotswapProjects:masterfrom
gejun123456:fixSpringOrderIssue

Conversation

@gejun123456
Copy link
Copy Markdown
Contributor

metadata will be cleared after bean class change in SpringBeanReload invokeBeanFactoryPostProcessors(beanFactory);

in PostProcessorRegistrationDelegate it wil clear beanFactory.clearMetadataCache();

Not sure why it fixed the issue, but I haven't noticed any side effects. It would be great if someone could help review it. remove the code also can improve the performance, my project start time from 11 second to 9 seconds.

@cvictory @edudant @skybber help review thanks.

@gejun123456
Copy link
Copy Markdown
Contributor Author

#461 related issue

@StefanPenndorf
Copy link
Copy Markdown

#458 seems to be related as well

@skybber
Copy link
Copy Markdown
Contributor

skybber commented Nov 6, 2024

@cvictory could you please check it?

@skybber
Copy link
Copy Markdown
Contributor

skybber commented Mar 29, 2025

Hi @gejun123456, just checking in — is this PR finished and tested?

@gejun123456
Copy link
Copy Markdown
Contributor Author

tested on my springboot enviroment, it works. may need more testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants