I have a little struggle with Spring Tool Suite in combination with spring-boot.
I created a custom Maven application spring-boot-web-application that includes several JUnit tests, one of which is an integration test, which has a configuration for the test application.
If I want to launch a spring-boot-web application through the Spring Tool Suite (run as → Spring application to download), the application does not start because both configurations (src / main / java, src / test / java) are found and conflicting with friend.
As soon as I remove the test resources from the build path, the application starts as expected.
Is there any parameter in the Spring Tool Suite to prevent adding test resources to the classpath when running the spring-boot-web application?
Thank you in advance!
spring-boot spring-tool-suite
flexguse
source share