Skip to content
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

Fix ClassLoader interaction with Spring Boot Devtools #8

Closed
aileftech opened this issue Oct 4, 2023 · 2 comments
Closed

Fix ClassLoader interaction with Spring Boot Devtools #8

aileftech opened this issue Oct 4, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@aileftech
Copy link
Owner

If devtools are included in the project, they inject a custom ClassLoader that interferes with the correct initialization of the EntityManager (see #1).

The current solution is not to include Spring Boot Devtools in order to run the project. Check what would be needed to fix this issue and restore compatibility with devtools.

@odrotbohm
Copy link

I think the only thing you need to do to fix this is telling Devtools, that it should include your JAR with the class loader that loads application classes by adding a META-INF/spring-devtools.properties. A project that needed to do something similar can be found here.

@aileftech
Copy link
Owner Author

Thanks! I've just tested this and it works perfectly. I'll include it in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants