-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Devtools main method search algorithm can find incorrect main method #35214
Comments
According to my local tests. It was broken via this commit 2b261e6 when using spring-boot-devtools |
Thanks for trying the snapshots @sivaprasadreddy, and thanks @eddumelendez for tracking down the commit. I think I know what's causing this. There's a bug in |
I am using spring-boot-3.1.0-SNAPSHOT with Spring Data JPA, Postgres, Testcontainers.
For local development, I have created
TestcontainersConfiguration.java
andTestApplication.java
undersrc/test/java
as follows:When I run TestApplication.java from IDE then Testcontainers is starting the Postgres database and application is working fine.
Problem:
But, if I add
spring-boot-devtools
dependency and run TestApplication.java then Testcontainers integration is stopped working. ie, Postgres container is not being started and application startup is failing.Reproducer: https://github.com/sivaprasadreddy/spring-boot-testcontainers-devmode
In pom.xml uncomment
spring-boot-devtools
dependency and run to reproduce the problem.The text was updated successfully, but these errors were encountered: