I am using Spring Boot with a multi module maven project, the structure looks like this
project - project-rest-controller - project-file-adapter - project-library
Where project-rest-controller module contains the @RestController and has a main Spring Boot class to start the embedded tomcat, the controller will receive a POST and create a request and pass it to the project-library module.
Also, project-file-adapter module contains a Spring-Integration file adapter to pull for a file in a directory, read the file and create a request and pass it to the project-library module.
When I run the application using mvn spring-boot:run from within the parent directory, I get an exception with main class should be specified.
It seems that Spring boot allows to specify the main class in the following way
mvn spring-boot:run -Dstart-class=com.blah.App
but I have two main classes.
Should I start two apps?
one from project-rest-controller one from project-file-adapter
This will start two JVMs and that's now what I am trying to do?