When I launch the Spring Boot application from Eclipse (STS) as a “Java application” or as a “Spring Boot App”, the application does not work because it is trying to load configurations (@Configuration) from the test path .
The fact is that it works correctly for building based on maven, but not for gradle.
The only workaround that I see is to rename the test package to something else to hide it from scanning the path.
In general, the question arises: how to make it work correctly? I would suggest that the SpringToolSuite team encounters this problem daily or that I am doing something wrong.
Here's a test project that works when importing like maven, but with an error when importing gradle: https://github.com/mabn/spring-boot-integration-test
I am using STS 3.7.1
eclipse spring-boot spring-tool-suite gradle
mabn
source share