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

This site uses Akismet to reduce spam. Learn how your comment data is processed.