preface

Since its release in March 2004, the Spring Framework has become increasingly popular with Java Web developers because of its ability to simplify unit testing, reduce bridging code, provide architectural flexibility, and keep pace with The Times. Coupled with the rise of microservices and distributed systems in recent years, Spring Framework has become one of the representative Java frameworks.

** Mastering Spring: Java Web development with Spring Boot advanced features, a comprehensive and in-depth guide to the new features of Spring 5.0, how to use Spring MVC to build applications, and how to use the Spring Framework to build and extend microservices. And how to develop and deploy cloud applications. In addition, the book introduces the capabilities of Spring Boot and demonstrates them with powerful examples. By the end of this book, you will have mastered the knowledge and practical strategies for developing applications using the Spring Framework.

! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p6-tt.byteimg.com/origin/pgc-image/0c6e672d91aa49939869980839ec319d?from=pc)

Dry full

1. A comprehensive analysis of Spring 5.x core features and new functions, to help you easily master Java enterprise application development;

2. In-depth introduction to Spring Boot to help you quickly deploy microservices to the cloud.

The characteristics of

● Explore new features in Spring Framework 5.0

● Study the use of Spring Boot to build microservices

● Explains deploying and managing applications on the Cloud using Spring Cloud

● Introduce Spring Data and Spring Cloud Data Flow

● Explain the basics of reactive programming

● Master practical strategies for developing applications using the Spring Framework

● Learn Spring Boot features

● Discuss using Kotlin to create new projects in Spring

Books directory

! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p3-tt.byteimg.com/origin/pgc-image/5e8b300535cf4ae1a0f2580f250e5fa0?from=pc)

** This chapter first introduces the core features of the Spring Framework, then analyzes why it is popular and how it remains the preferred Framework, then introduces the important modules in the Spring Framework. Then you’ll learn about the Spring project and finally the new features in Spring Framework5.0. This chapter will answer the following questions:

  • Why is the Spring Framework popular?
  • How does the Spring Framework adapt to the evolution of application architectures?
  • What are the important modules in the Spring Framework?
  • What role does the Spring Framework play in a series of Spring projects?
  • What are the new features in Spring Framework 5.0?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p1-tt.byteimg.com/origin/pgc-image/9878d2275263417a992708eab4cd71be?from=pc)

** Chapter 2 dependency Injection :** This chapter begins with an analysis of dependency injection requirements and a simple example to illustrate their use. It then explains the important benefits of dependency injection — increased maintainability, loose coupling, and improved testability — and introduces dependency injection options in Spring. Finally, I explain the standard dependency injection specification for Java context and dependency injection (CDI), and how Spring supports it. This chapter will answer the following questions:

  • What is a dependent person?
  • How can proper use of dependency annotations improve application testability?
  • How does Spring implement dependency injection through annotations?
  • What is component scanning?
  • How is Java different from XML in terms of application context?
  • How do I create unit tests for the Spring context?
  • How does emulation simplify unit testing?
  • What are the different bean scopes?
  • What is CDI and how does Spring support it?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p3-tt.byteimg.com/origin/pgc-image/28d88d68715f411ebaf77d167c7eb565?from=pc)

** Chapter 3 Building Web Applications with Spring MVC :**Spring MVC is the most commonly used Web framework for developing Java Web applications and has the advantage of a clean, loosely coupled architecture. It simplifies Web application development by precisely defining the responsibilities of controllers, handler maps, view parsers, and simple Java Object (POJO) command beans, leveraging all of Spring’s core capabilities, such as dependency injection and auto-assembly. Spring MVC supports multiple view technologies and is extensible. Spring MVC can be used to create REST services, a topic covered in Chapter 5. This chapter focuses on the basics of Spring MVC with some simple examples. This chapter will cover the following topics:

  • Spring MVC architecture;
  • Dispatcherservlet. View parser. Handler mapping and the role of the controller;
  • Model attributes and session attributes;
  • Form binding and validation;
  • Integration the Bootstrap;
  • Spring Security basics;
  • Write simple unit tests for the controller.
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p6-tt.byteimg.com/origin/pgc-image/480ca59b9bae43b9b66a40feac47cf64?from=pc)

** This chapter first reviews the issues that the Spring Framework has helped solve over the past 16 years, then examines the monolithic Application issues, and introduces small, independently deployable components. This chapter explores why the world is moving to microservices and cloud-native applications, and concludes with a look at how the Spring Framework and Spring projects are evolving to address the current issues. This chapter will cover the following topics:

  • Architecture of Spring-based Austrian applications.
  • Problems that the Spring Framework has helped solve over the past 16 years.
  • What are your goals when developing the application?
  • What challenges do individual apps face?
  • What are microservices?
  • What are the advantages of microservices?
  • What are the challenges facing microservices?
  • What are some good practices for deploying microservices in the cloud?
  • What Spring projects can help us develop microservices and cloud-native applications?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p3-tt.byteimg.com/origin/pgc-image/04d06b76e89d4670b03f9b3580fe90a2?from=pc)

** Chapter 5 Building microservices with Spring Boot :** As discussed in the previous chapter, we are moving to a small, independently deployable microservice architecture. That means lots of small microservices will be developed. One important consequence is that we need to be able to get started quickly and run services with new components. Spring Boot is designed to solve the problem of running services quickly with new components. This chapter begins by introducing the features Spring Boot provides and answering the following questions.

  • Why Spring Boot?
  • What does Spring Boot offer?
  • What is auto-configuration?
  • What features does Spring Boot not support?
  • What happens in the background when you use Spring Boot?
  • How to create a new Spring Boot project using Spring Iitaliza?
  • How to create a basic RESTful service using Spring Boot?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p6-tt.byteimg.com/origin/pgc-image/e15a33ad61c4408d9dadea5ec4abbca6?from=pc)

** Chapter 6 Extends Microservices :** Chapter 5 builds the basic components that provide several services. This chapter focuses on how to add more functionality to use microservices in a production environment. This chapter discusses how to add the following capabilities to microservices:

  • Exception handling
  • HATEOAS
  • The cache
  • internationalization

This chapter also explains how to document using Swagge microservices and covers the basics of securing microservices using Spring Security

! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p1-tt.byteimg.com/origin/pgc-image/867e1b2e2d674a3c87b9a8fb2ffaaa91?from=pc)

** Chapter 7 Advanced Features of Spring Boot :** The previous chapter extended microservices to add exception handling, HATEOAS, caching, and internationalization capabilities. This chapter describes how to deploy services to a production environment. To deploy services to production, you need to be able to set up and develop capabilities to configure, deploy, and monitor services. This chapter will answer the following questions:

  • How do YOU externalize application configuration?
  • How do I use configuration files to configure environment-specific values?
  • How do I deploy an application to the cloud?
  • What is an embedded server? How do I use Tomcat, Jetty and Undcrtow?
  • What monitoring features does Spring Boot Actuator provide?
  • How can developers using Spring Boot increase productivity?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p3-tt.byteimg.com/origin/pgc-image/ef06ac8f9a1a4fd3bc728391124f7cdd?from=pc)

** Chapter 8 Spring Data:** Chapter 7 covers advanced features of Spring Boot, such as configuration externalization, monitoring, embedded servers, and deployment to the cloud. This chapter will focus on data. Over the past decade, the media and ways of storing data have been evolving rapidly. After decades of steady development of relational databases, a large number of unstructured and non-relational databases have gradually become the mainstream in the past 10 years. As a variety of data stores exist, frameworks for interacting with them become increasingly important. While it is easy to interact with relational databases using JPA, Spring Data aims to provide a common way to interact with a broader range of Data stores, relational or otherwise. This chapter will answer the following questions:

  • What is Spring Data?
  • What is the goal of Spring Data?
  • How do I use Spring Data and Spring Data JIPA to interact with relational databases?
  • How do I use Spring Data to interact with non-relational databases such as MongoDB?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p1-tt.byteimg.com/origin/pgc-image/93785536c84941ecacd9a1a5dceb384a?from=pc)

** Chapter 9 Spring Cloud:** This chapter introduces some important patterns related to developing cloud-native applications and implementing them using Spring Cloud projects. This chapter introduces the following features:

  • Centralized microservice configuration through Spring Cloud Confg Server;
  • Configuration synchronization across microservice instances using Spring Cloud Bus;
  • Create a declarative REST client using Feign;
  • Client Load Balancing with the Ribbon:
  • Use Eureka to implement name server;
  • API gateway implementation using Zuul:
  • Using Spring Cloud Sleuth and Zipkin to achieve distributed tracking;
  • Use Hystrix for fault tolerance.
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p1-tt.byteimg.com/origin/pgc-image/850370bf70b84dfbbd2515adcede95a0?from=pc)

** Chapter 10 Spring Cloud Data Flow:**Spring Data Flow introduces a microservice architecture in typical Data Flow and event Flow scenarios. These scenarios are described in detail later in this chapter. Spring Data Flow builds on other Spring projects such as Spring Cloud Stream, Spring Integration, and Spring Boot to help easily define and extend use cases related to Data and event flows through message-based Integration. This chapter will cover the following topics:

  • Why asynchronous communication?
  • What is Spring Cloud Stream? How to build Spring Cloud Stream on top of Spring Itegration?
  • Why do WE need Spring Data Flow?
  • What important concepts do you need to know about Spring Data Flow?
  • What are the use cases for Spring Data Flow?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p1-tt.byteimg.com/origin/pgc-image/ddf000bb43fe4b7998afd3818b0bb51d?from=pc)

** Chapter 11 Reactive Programming :** The previous chapter described how to use Spring Cloud Datu Flow to implement a typical data Flow use case through microservices. The appearance of functional programming marks the beginning of users from the traditional imperative programming to declarative programming. Reactive programming builds on functional programming and provides an alternative. This chapter introduces the basics of reactive programming. The microservices architecture promotes the adoption of message-based communication. An important principle of reactive programming is to build applications based on events (or messages). Here are some important questions we need to answer:

  • What is reactive programming?
  • What are its typical use cases?
  • What does Java support for it?
  • What reactive capabilities does Spring WebFlux provide?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p6-tt.byteimg.com/origin/pgc-image/e0021cf0cd9b482e9fd09b598aa47753?from=pc)

** Chapter 12 Spring Best Practices :** The first few chapters cover a number of Spring options: Spring MVC, Spring Boot. Spring Cloud, Sprig Cloud DataFlow, and Spring Reuctive. However, even if you choose the right framework, you still face challenges when developing enterprise applications, and one of the biggest challenges is how to use the various frameworks appropriately. This chapter introduces best practices for developing enterprise applications using the Spring Framework. We will explore best practices for:

  • The structure of an enterprise application
  • The Spring configuration
  • Manage dependency versions.
  • Exception handling
  • Unit testing
  • Integration testing
  • Session management
  • The cache
  • logging
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p6-tt.byteimg.com/origin/pgc-image/1f7dfd16fa6347549cfcce4afc5a0568?from=pc)

** Chapter 13 Using Kotlin in Spring :**Kotin is a statically typed JVM language that allows you to write expressive, short, and readable code. Spring Frame-Work 5.0 fully supports Kotline This chapter introduces some of Kotlio’s key features and explores how to create basic REST services using Kotlin and Spring Boot. By the end of this chapter, you will have learned the following.

  • What is a Kotin?
  • What are its advantages over Java?
  • How do I create a Kotlin project in Eelipse?
  • How to create a Spring Boot project using Kotin?
  • How can I use Kotlin to implement and unit test a simple Spring Boot REST service?
! [perfect! God of the foreign and proficient in the Spring, the Chinese version of the open source] (https://p3-tt.byteimg.com/origin/pgc-image/911d6c6bd0394a0fa5148a5ec4ca7d1c?from=pc)

Due to space constraints, only part of the directory is shown, want to get this: “proficient in SpringJava Web development and Spring Boot advanced features of the partners see here