Skip to content

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Jan 20, 2025

It should be fixed at Spring Boot side, see spring-projects/spring-boot@2f83a67

It should be fixed at Spring Boot side, see spring-projects/spring-boot@2f83a67

Signed-off-by: Yanming Zhou <[email protected]>
@quaff quaff changed the title Fix outdated package name Remove workaround for data source cycle Jan 21, 2025

@Override
public void afterPropertiesSet() {
String cls = "org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker";
Copy link
Contributor

Choose a reason for hiding this comment

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

DataSourceInitializerInvoker was removed in the Spring Boot commit you referenced, correct?

Therefore the if statement below never actually gets executed, right?

Copy link
Contributor Author

@quaff quaff Jan 22, 2025

Choose a reason for hiding this comment

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

Not exactly, Spring Boot rework DataSource initialization to fix it entirely, it can be proved since @ConditionalOnClass(name = "javax.persistence.EntityManagerFactory") never matches since it renamed to jakarta.persistence.EntityManagerFactory.

@ryanjbaxter ryanjbaxter added this to the 4.1.6 milestone Jan 22, 2025
@ryanjbaxter ryanjbaxter merged commit c507a22 into spring-cloud:main Jan 22, 2025
2 checks passed
ryanjbaxter pushed a commit that referenced this pull request Jan 22, 2025
It should be fixed at Spring Boot side, see spring-projects/spring-boot@2f83a67

Signed-off-by: Yanming Zhou <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done
Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants