Run multiple spring boot jars in one jvm

My project contains several services, each one is annotated with @SpringBootApplication and can be run on a random port via “gradle bootRun”.

Is it possible to build the services into jars and run them together in one JVM? Not matter by programmatic method or just put them in a container.

Please show me some instructions if possible. Thanks!


Source: java

Leave a Reply