وبلاگ بلیان

Beginning Spring 6 : From Beginner to Pro

جلد کتاب Beginning Spring 6 : From Beginner to Pro

معرفی کتاب «Beginning Spring 6 : From Beginner to Pro» نوشتهٔ Joseph B. Ottinger و Andrew Lombardi، منتشرشده توسط نشر Apress L. P. در سال 2024. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Beginning Spring 6 : From Beginner to Pro» در دستهٔ برنامه‌نویسی قرار دارد.

This book will teach you how to use the Spring Framework to build Java-based applications, web applications, and microservices. Aimed at beginners, it has been revised and expanded to reflect the latest features and best practices for Spring 6. Authors Joseph Ottinger and Andrew Lombardi will get you started using Spring Framework 6 and its ecosystem, walking you through all the best practices in modern application development. You’ll see how Spring has drastically and positively affected the way applications are designed and programmed in Java, and how to build apps with the Spring mindset. Along the way, you will learn many aspects of the Spring ecosystem with easy-to-understand applications designed to teach you not only the technology, but also the practices that benefit the most from Spring. Starting with the basics, you’ll learn gradually, including topics such as the configuration and declaration of beans, the application lifecycle, how to deploy a Spring application into a Java EE application, Spring Reactive, Spring Web, Spring Boot, and Spring Cloud. After completing this book, you’ll be prepared to develop your own scalable, modular Spring-based applications. What You Will Learn Discover the most common use cases encountered in the real world Learn the proper way of testing with the Spring framework Create reliable, modular software Build skills that will translate well across all languages and environments Integrate and use data access and persistence frameworks such as Hibernate, JPA, and MongoDB Get started with the most common, most-used Spring features Who This Book Is For Those who are new to Spring or for those who have experience with Spring but want to learn what's new in Spring 6. This book assumes you have some prior coding experience in Java, but many core concepts in Java are discussed as they’re encountered. Table of Contents About the Authors About the Technical Reviewer Acknowledgments Chapter 1: History and Justification Setting the Stage for Better Development Rod and Juergen Change the (Java) World The Lever: Dependency Injection J2EE Hello World, As of 2005 Spring’s Better Vision of Hello World Spring Breaks Free and Fixes Java EE Spring 6 and Modern Java Next Steps Chapter 2: Hello, World! A Simple Application Suffering-Oriented Programming Building Installing Maven Building the Project Testing A Simple Application with Spring Next Steps Chapter 3: Configuration and Declaration of Beans The Container The Sample Application The Code for the Band Gateway The Build The Model The Normalizer Interface The Music Service Configuration Through Annotation Declaring a Spring Bean with @Component Wiring Components Together with @Autowired Choosing Components with @Qualifier and Bean Names Constructor Injection with Annotations Configuration Through XML Declaring a Bean with Wiring Components Together with Wiring Components Together with Configuration Through Java Config Declaring Components with @Bean Using a Programmatic Configuration for ApplicationContext Wiring Components Together with @Autowired with Static Configuration Using @Qualifier to Select Specific Components for Wiring Constructor Injection with Static Configuration Testing Every Configuration with a DataProvider Next Steps Untitled Chapter 4: Lifecycle Introduction of Lifecycle Scope Calling Constructors Calling Methods After Construction and Before Destruction Lifecycle Listeners Lifecycle with JSR-250 Annotations Annotated Beans with Scopes Constructors with Annotated Classes Calling Methods After Construction and Before Destruction Lifecycle with Java Configuration Additional Scopes Next Steps Chapter 5: Spring and Jakarta EE Introduction to Jakarta EE The Servlet API Modern Web Application Design Principles Module Structure The Common Module The Annotation-Based Web Application Our First Standalone Working Servlet Adding a Spring Context for Our Servlets The XML-Based Spring Context Application Next Steps Chapter 6: Spring Web Introduction to Spring MVC MVC Hello, World with MVC REST Concepts Using HTTP Methods Appropriately Developing Our First Endpoint with MVC Configuration Templates and Models Error Handling Next Steps Chapter 7: Spring Boot What Is Spring Boot? Setting Up a Project Checking the Foundation Building the Application Building Our Transport Object Actually Saying “Hello” Testing with Spring Boot Configuration in Spring Boot Static Content with Spring Boot Summary of the “Hello, World” Boot Mechanism Spring Boot and Database Connections Initializing Data with Spring Boot Building an ArtistService Handling Exceptions in Spring Boot The Actual Implementation of ArtistService and Its Little Controller, Too Testing Our ArtistController: Does It Work? Next Steps Chapter 8: Spring Data Access with JdbcTemplate Introduction Project Setup Our Entity and Data Models Accessing Data JdbcTemplate.query() @Transactional The Actual MusicRepository Testing MusicRepository Adding the REST Endpoints The ArtistController The SongController Next Steps Chapter 9: Persistence with Spring and Spring Data Introduction General Architecture An Important Note About Requirements Creating Our Project Structure The Common Code The chapter09-test Project The chapter09-jpa Project The chapter09-mongo Project Getting MongoDB The Code for the chapter09-mongo Project Tying Up Loose Ends Next Steps Chapter 10: Spring Security Introduction Quickstart Testing Customizing Your Security Securing a REST Application Integrating OAuth The Road to Spring Security 7 Next Steps Chapter 11: Spring Batch and Modulith Introduction to Batch Configuration Our First Job Processing and Listening Introduction to Modulith Verification Documentation Next Steps Chapter 12: Next Steps A Criticism of Books Spring Initializr Alternative JVM Languages Spring WebMVC.fn Spring Reactive Message Queues and Spring GraphQL Cloud Deployment Performance Metrics Other Developers What’s Next? Index
دانلود کتاب Beginning Spring 6 : From Beginner to Pro