Hello Stackoverflow :),
to give some context, I mostly single-handedly develop an application, which runs tests with Cucumber and TestNG. The whole applications runs with spring boot and I took extra care to allow parallelism everywhere. I now want to extend the application with a very simple and easy to maintain frontend which allows the execution of test runs via a GUI.
The Spring Application with the GUI is a separate @SpringBootConfiguration, which would spawn yet another separate @SpringBootConfiguration for executions which are started via the GUI. So I have 3 Configurations:
- Configuration for CI/CD purposes
- Configuration for GUI purposes with an extra controller
- Configuration to be started from the GUI Configuration
The execution of the 3. Configuration happens inside a POST controller method and looks something like this:
CompleteableFuture.runAsync(() -> new SpringApplicationBuilder().OMITTED.run(..., ..., ...));
The 3. Configuration currently does not work when executed from inside the JAR, only when executed via IntelliJ. When @EnableAutoConfiguration is activated, it says something about not finding the spring.factories file. Without it simply can not find the appropriate sources.
Is this approach possible / viable? Or is there maybe a better approach for my use case? Note that I want to reduce complexity where possible and really just need a simple frontend.