Hands-on Application Development using Spring Boot
US$ 19.95
The publisher has enabled DRM protection, which means that you need to use the BookFusion iOS, Android or Web app to read this eBook. This eBook cannot be used outside of the BookFusion platform.
Description
Contents
Reviews
Language
English
ISBN
9789391030223
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
About the Reviewer
Acknowledgements
Preface
Errata
Table of Contents
1. Getting Started with Spring Boot
Structure
Objectives
Introduction to Spring Boot
Features of Spring Boot
Advantages of Spring Boot
Breaking the monolithic way of developing software
When to start using microservices?
When not to start using microservices?
System requirements
Setting up the environment
Installing Java Development Kit 8 (jdk-8u261-windows-x64)
Installing Apache Maven (apache-maven-3.6.3)
Installing Gradle (gradle 6.6)
Installing Spring Tool Suite (STS 4)
The 12-factor app
Spring Initializr
Conclusion
Points to remember
Questions
2. Developing Your First Spring Boot Application
Structure
Objectives
Starting with Spring Initializr
Build tools – Maven and Gradle
Understanding the pom.xml
Understanding build.gradle
Building an application using Maven
Building an application using Gradle
Understanding the entry point class and SpringBootApplication annotation
Bootstrap ApplicationContext
Java configuration
XML configuration
Annotation configuration
Conclusion
Points to remember
Questions
3. Spring Boot Starter Dependencies and Auto-Configuration
Structure
Objectives
Spring Boot starters
Spring Boot starter dependencies and their configuration
spring-boot-starter-parent
spring-boot-starter-web
spring-boot-starter-data-jpa
spring-boot-starter-test
spring-boot-starter-security
spring-boot-starter-actuator
spring-boot-starter-logging
spring-boot-starter-cache
spring-boot-starter-aop
Understanding auto-configuration
Conditional on class
Conditional on bean
Conditional on property
Conclusion
Points to remember
Questions
4. Spring Boot Annotations
Structure
Objectives
Java annotations
Existence of Spring annotations
Spring and Spring Boot annotations
Core Spring framework annotations
@Bean
@Autowired
@ComponentScan
@Configuration
@ConfigurationProperties
@TestPropertySource
@Lazy
@Qualifier
@Primary
@Value
Spring framework stereotype annotations
@Component
@Controller
@Repository
@Service
Spring Boot annotations
@EnableAutoConfiguration
@SpringBootApplication
@SpringBootConfiguration
Spring task execution annotations
@Async
@EnableScheduling
@Scheduled
Spring profiles annotations
@Profile
@ActiveProfiles
Jakarta annotations
@PreDestroy
@PostConstruct
Conclusion
Points to remember
Questions
5. Working with Spring Data JPA and Caching
Structure
Objective
Accessing relational data using JdbcTemplate with the in-memory database
Accessing relational data using Spring data JPA with the in-memory database
MySQL and its installation
Accessing relational data using Spring data JPA with MySQL
Query methods in Spring data JPA
Caching
Conclusion
Points to remember
Questions
6. Building RESTFul Microservices
Structure
Objectives
Creating RESTful APIs
Consuming RESTFul APIs
Creating different profiles based on the environment
Using Spring Boot actuators for getting telemetry data
Custom health check indicators
Exception handling using ControllerAdvice
Service discovery
Using RestTemplate for calling APIs
Routing a request via the API gateway with Spring Cloud Gateway
Spring Cloud Gateway
Conclusion
Points to Remember
Questions
7. Securing a Web Application
Structure
Objectives
Authentication and authorization concepts
Authentication
Authorization
Spring security filters
Enabling username and password security
Disable security
OAuth security
Accessing REST secured APIs with the user role
Uploading and downloading files from REST services
Conclusion
Points to remember
Questions
8. Building Resilient System
Structure
Objectives
Client-side load balancing
Circuit breaker
Implementing Resilience4J
Conclusion
Points to remember
Questions
9. Logging
Structure
Objective
Different ways of logging data
Logback
Understanding Spring Cloud Sleuth and Zipkin log aggregation
Using ELK for analyzing events
Conclusion
Points to Remember
Questions
10. Working with the Swagger API Management Tool
Structure
Objectives
API documentation
Implementing Swagger
Swagger UI
Annotations used in the Swagger documentation
Creating models using Swagger Codegen
Conclusion
Points to remember
Questions
11. Testing a Spring Boot Application
Structure
Objective
Unit testing and integration testing
Writing a unit test using the JUnit framework
Writing a unit test using the Mockito framework
Checking code coverage
Testing RESTFul web services
Cucumber automation testing
Conclusion
Points to remember
Questions
12. Deploying a Spring Boot Application
Structure
Objectives
Docker and containerization
Features
Setting up Docker
Heroku CLI and deployment
Conclusion
Points to Remember
Questions
Index
The book hasn't received reviews yet.