January 2018
Intermediate to advanced
414 pages
10h 29m
English
Now that we have our microservices packaged, we need to run them, for example from our command line. To run our example, we can just enter the following:
java -jar target/chapter2-0.0.1-SNAPSHOT.jar
This will launch the application and finally show something like the following:
Tomcat started on port(s): 8080 (http)Started Chapter2ApplicationKt in 2.274 seconds (JVM running for 2.619)
We can press Ctrl + C to stop it at any time.
This is exactly the same when we execute the goal run on the Spring Boot Maven plugin, but we are not using Maven, we don't need Maven for running our JARs, neither a JDK, just a JRE (Java Runtime Environment).
Read now
Unlock full access