We have several classes, which are annotated with @SpringBootApplication, and we would like to run them simultaneously on the same maschine. How can we configure Spring such that there is as minimal interaction between them as possible?
We think out problems come down specifically to how Spring sets up tomcat, as we spent time exclude other implementation details as cause. Specifically, both applications accessing the same port seems to cause problems.
@SpringBootApplication
@ComponentScan
public class ServerA {
public static void main(String[] args) {
final ConfigurableApplicationContext context = SpringApplication.run(ServerA.class,args);
...
}