Spring microservices with Spring Boot : unlock the power to Sring Boot to build and deploy production-redy microservices

Unlock the power of Spring Boot to build and deploy production-ready microservices About This Book Get to know the advanced features of Spring Boot in order to develop and monitor applications Use Spring cloud to deploy and manage microservices on the cloud Look at embedded servers and deploy a test...

Descripción completa

Detalles Bibliográficos
Otros Autores: Karanam, Ranga Rao, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England ; Mumbai, [India] : Packt 2018.
Edición:First edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009631598106719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • Table of Contents
  • Preface
  • Lesson 1: Building Microservices with Spring Boot
  • What is Spring Boot?
  • Building a Quick Prototype for a Microservice
  • Primary Goals
  • Nonfunctional Features
  • Spring Boot Hello World
  • Configure spring-boot-starter-parent
  • spring-boot-starter-parent
  • Configure pom.xml with the required starter projects
  • Understanding Starter Projects
  • Configuring spring-boot-maven-plugin
  • Creating Your First Spring Boot Launch Class
  • The SpringApplication Class
  • The @SpringBootApplication Annotation
  • Running Our Hello World Application
  • Auto-configuration
  • Starter Projects
  • What is REST?
  • First REST Service
  • Simple Method Returning String
  • Unit Testing
  • Integration Testing
  • Simple REST Method Returning an Object
  • Executing a Request
  • Unit Testing
  • Integration Testing
  • Get Method with Path Variables
  • Executing a Request
  • Unit Testing
  • Integration Testing
  • Creating a Todo Resource
  • Request Methods, Operations, and Uris
  • Beans and Services
  • Retrieving a Todo List
  • Executing the Service
  • Unit Testing
  • Integration Testing
  • Retrieving Details for a Specific Todo
  • Executing the Service
  • Unit Testing
  • Integration Testing
  • Adding A Todo
  • Postman
  • Executing the POST Service
  • Unit Testing
  • Integration Testing
  • Spring Initializr
  • Creating Your First Spring Initializr Project
  • pom.xml
  • FirstSpringInitializrApplication.java Class
  • FirstSpringInitializrApplicationTests Class
  • A Quick Peek into Auto-Configuration
  • Summary
  • Assessments
  • Lesson 2: Extending Microservices
  • Exception Handling
  • Spring Boot Default Exception Handling
  • Non-Existent Resource
  • Resource Throwing an Exception
  • Throwing a Custom Exception
  • Customizing the Exception Message
  • Response Status
  • HATEOAS.
  • Sending HATEOAS Links in Response
  • Spring Boot Starter HATEOAS
  • Validation
  • Enabling Validation on the Controller Method
  • Defining validations on the Bean
  • Unit Testing Validations
  • Documenting REST Services
  • Generating a Swagger Specification
  • Swagger UI
  • Customizing Swagger Documentation Using Annotations
  • Securing REST Services with Spring Security
  • Adding Spring Security Starter
  • Basic Authentication
  • Integration Testing
  • Unit Testing
  • OAuth 2 Authentication
  • High-level flow
  • Implementing OAuth 2 authentication for Our Service
  • Setting up Authorization and Resource Servers:
  • Executing OAuth Requests
  • Obtaining an Access Token
  • Executing the Request Using the Access Token
  • Integration Test
  • Internationalization
  • Caching
  • Spring-boot-starter-cache
  • Enabling Caching
  • Caching Data
  • JSR-107 Caching Annotations
  • Auto-Detection Order
  • Summary
  • Assessments
  • Lesson 3: Advanced Spring Boot Features
  • Externalised Configuration
  • Customizing Frameworks Through application.properties
  • Logging
  • Embedded Server Configuration
  • Spring MVC
  • Spring Starter Security
  • Data Sources, JDBC and JPA
  • Other Configuration Options
  • Custom Properties in Application.Properties
  • Configuration properties - Type-Safe Configuration Management
  • Profiles
  • Profiles-Based Bean Configuration
  • Other Options for Application Configuration Values
  • YAML Configuration
  • Embedded Servers
  • Switching to Jetty and Undertow
  • Building a WAR file
  • Developer Tools
  • Live Reload
  • Spring Boot Actuator
  • HAL Browser
  • Configuration Properties
  • Environment Details
  • Health
  • Mappings
  • Beans
  • Metrics
  • Auto-Configuration
  • Debugging
  • Deploying an Application to Cloud
  • Cloud Foundry
  • Summary
  • Assessments
  • Appendix: Assessment Answers.