Provided using WildFly Swarm
Build and run the service
cd microservice-session
mvn clean package
java -jar target/microservice-session-swarm.jar [-D<OPTION>]
Address & Port Bindings
Flag | Description | Default |
---|---|---|
swarm.bind.address=<address> |
Interface to bind servers |
0.0.0.0 |
swarm.http.port=<port> |
Sets the port for the HTTP server |
8080 |
swarm.port.offset=<offset> |
Sets a global port adjustment |
0 |
For example, if you want to change the HTTP port to 5050, run the application like this:
java -jar target/microservice-session-swarm.jar -Dswarm.http.port=5050
Click on this link to verify that everything ran fine: http://localhost:5050/sessions
For a full set of configuration options please see the Wildfly Swarm Userguide