Creating Mature Java Microservice Client
Last updated: 2025-09-14
This section shows how to create a Mature REST Microservice service client in no-time.
Steps:
-
Create Maven project such as the following:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-service/java-mature-microservice-client-tutorial.adoc - include::inc/mature-service-client/pom.xml[]
If you are using Eclipse, be sure to refresh your project (select your project→ right click→ Maven→ Update Project) |
-
Create config.properties in src/main/resources, as the following:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-service/java-mature-microservice-client-tutorial.adoc - include::inc/mature-service-client/src/main/resources/config.properties[]
-
Create the Model class at src/main/java/com/app/person/Model.java, such as the following:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-service/java-mature-microservice-client-tutorial.adoc - include::inc/mature-service-client/src/main/java/com/app/person/Model.java[]
-
Create ServiceClient class at src/main/java/com/app/person/ServiceClient.java as follows:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-service/java-mature-microservice-client-tutorial.adoc - include::inc/mature-service-client/src/main/java/com/app/person/ServiceClient.java[]
-
Create App class at src/main/java/com/app/App.java for quick testing:
Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-service/java-mature-microservice-client-tutorial.adoc - include::inc/mature-service-client/src/main/java/com/app/App.java[]
Run your App class, you should see something like this in your console:

Full example source-code can be found at https://github.com/smartapi-com/j-framework-microservice-mature-client |