Developing microservices is not so tedious anymore thanks to the powerful Spring Boot framework. Spring Boot is a framework to develop production-ready microservices in Java.
This chapter will move from the microservices theory explained in the previous chapter to hands-on practice by reviewing code samples. This chapter will introduce the Spring Boot framework and explain how Spring Boot can help build RESTful microservices in line with the principles and characteristics discussed in the previous chapter. Finally, some of the features offered by Spring Boot to make microservices production-ready will be reviewed.
By the end of this chapter, you will have learned about:
To crystalize microservices concepts, a couple of microservices will be built. For this, it is assumed that the following components are installed:
Alternately, other IDEs such as IntelliJ IDEA, NetBeans, or Eclipse could be used. Similarly, alternate build tools such as Gradle can be used. It is assumed that the Maven repository, class path, and other path variables are set properly to run STS and Maven projects.
This chapter is based on the following versions of Spring libraries:
4.2.6.RELEASE
1.3.5.RELEASE
Detailed steps to download the code bundle are mentioned in the Preface of this book. Have a look.
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Spring-Microservices. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!