Creating your first Microservice

Microservice created with Java EE or Spring Boot is easy to implement and fast to code. The amount of code a developer needs to write while implementing a Microservice is very little, as most of the boilerplate code is provided by Spring Boot or Java libraries. However, before a Microservice can be created in both technologies, a few concepts need to be understood.

In this chapter, the process of building the Microservice project from scratch is described in detail. First, the tools required for project creation and management are described and explained. Having the tools installed, the second part of this chapter is a thorough guide on project creation. With your project created, two dedicated sections follow, providing a thorough hands-on experience of coding a similar Microservice both with Java EE and Spring Boot. A simple way to run the Microservices is then described.

The aim of this chapter is to provide the reader with the basics of Microservices creation on the Java platform, be it with Spring or Java EE. Each step is described in detail to make sure that the reader understands the concepts well.

The topics to be covered in this chapter are listed as follows:

  • Setting up the development environment
  • Installing the Java Development Kit and Apache Maven
  • A Java EE Microservice
  • A Spring Boot Microservice
  • Creating a project with Maven
  • Building and running the Spring Boot Microservice
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.135.225