This example demonstrates configuration of a Client using property file. The property file microprofile-config.properties is consumed by Microprofile Config implementation and the properties from the property file are set to Jersey Configuration.
The following properties are defined in microprofile-config.properties
property file:
The mapping of the URI path space is presented in the following table:
URI path | Resource class | HTTP methods | Notes |
---|---|---|---|
/helloworld | HelloWorldResource | POST | Echoes the message sent |
Run the example as follows:
mvn clean compile exec:java
This deploys the example using Grizzly container.