Book Image

Spring: Microservices with Spring Boot

By : Ranga Rao Karanam
Book Image

Spring: Microservices with Spring Boot

By: Ranga Rao Karanam

Overview of this book

Microservices helps in decomposing applications into small services and move away from a single monolithic artifact. It helps in building systems that are scalable, flexible, and high resilient. Spring Boot helps in building REST-oriented, production-grade microservices. This book is a quick learning guide on how to build, monitor, and deploy microservices with Spring Boot. You'll be first familiarized with Spring Boot before delving into building microservices. You will learn how to document your microservice with the help of Spring REST docs and Swagger documentation. You will then learn how to secure your microservice with Spring Security and OAuth2. You will deploy your app using a self-contained HTTP server and also learn to monitor a microservice with the help of Spring Boot actuator. This book is ideal for Java developers who knows the basics of Spring programming and want to build microservices with Spring Boot. This book is embedded with useful assessments that will help you revise the concepts you have learned in this book. This book is repurposed for this specific learning experience from material from Packt's Mastering Spring 5.0 by Ranga Rao Karanam.
Table of Contents (7 chapters)


  1. The _________ provides a number of annotations that can be used to validate beans.

  2. Which of the following is an annotated element size that must be within the specified boundaries?

    1. @SizeOf

    2. @SizeBoundary

    3. @SizeTo

    4. @Size

  3. State whether True or False: HATEOAS is one of the key features of the REST application architecture.

  4. Which of the following is a simple builder class to configure the generation of Swagger documentation using the Swagger Spring MVC framework?

    1. Docket

    2. Swagger

    3. REST

    4. QAuth

  5. Which of the following is a convenient annotation for OAuth 2 resource servers that enable a Spring Security filter which authenticates requests via an incoming OAuth 2 token?

    1. @enableResourceServer

    2. @enablesResourcesServer

    3. @EnableResourceServer

    4. @EnableResourceServers