Running in Eclipse
The
Go to Run -> Run Configurations -> Java Application -> my-microservice and click Run.
In your console view, you should see the following output:
Running class 'RestMicroservice' using config file 'my-microservice.cfg'. Server started on port 10000 List of available commands: exit -- Shut down service restart -- Restarts service help -- Commands help >
Now open your browser and point to
http://localhost:10000
You have started a REST interface on port 10000.
You can enter the command exit to shut it down.