Introduction to Spring 6, Spring Boot 3, and Spring REST (SPRING6-BOOT3-REST)
Embark on your journey into the world of Spring technologies with the Introduction to Spring 6, Spring Boot 3, and Spring REST course. Tailored for both teams and solo practitioners within businesses, this course is an ideal platform to familiarize yourself with the core concepts and capabilities of Spring, equipping you with the necessary skills to leverage its extensive framework in your projects.
We kick off with an Introduction to Spring, where you'll gain insights into the overall architecture and motivation behind Spring, setting the stage for deeper understanding. This lesson encompasses the fundamentals of the Spring Framework, as well as integration with Maven for effective project management. As you progress, the course guides you through managing beans and utilizing ApplicationContexts—the heart of Spring's container. You'll explore configuration options using XML and annotations such as @Component and @Named, fostering flexibility in managing your application's dependencies.
Understanding Dependencies and Dependency Injection (DI) is important for effective application design, and this lesson demystifies these concepts through practical examples. You'll explore DI approaches in Spring using XML and the @Autowired annotation, ensuring seamless integration and management of components. Our Spring Boot Quickstart section offers a brief yet comprehensive introduction to Spring Boot, propelling you towards rapid application development with minimal configuration.
The course transitions to Configuration in Depth, where Java-based configuration is examined using annotations like @Configuration and @Bean. Delve into the merits of different configuration styles and learn to seamlessly integrate them using tools like @Import. You'll also tackle bean scopes and lifecycle management, covering important concepts like singleton and prototype scopes, along with configuring bean life callbacks.
Building on this foundation, Intro to Spring Boot provides a detailed examination of Spring POMs with Boot parents, starters, and property management, empowering you to customize and refine your Spring Boot applications. Simultaneously, the Spring Testing lesson introduces you to testing methods using JUnit 5 and Spring's TestContext Framework, bolstering your capabilities for robust application testing and validation.
The Database Access with Spring/Boot section will enhance your understanding of Spring's database capabilities, including configuration and customization using JPA repositories. You'll explore Spring Data and learn to handle more complex data querying needs, backed by effective use of Spring's auto-configuration features within Boot.
Spring Transaction (TX) Management guides you through transaction management strategies, focusing on declarative management and transaction propagation, ensuring robust and reliable data operations in your applications. You will also examine RESTful services in depth with RESTful Services with Spring, where you'll unlock the potential of Spring's REST APIs, tackle request and response handling, and integrate Ajax techniques for seamless data interactions.
Additionally, you'll tackle Working with JSON and XML to generate and manipulate data formats, with optional exploration into XML. Content negotiation is tackled here too, optimizing your applications' responsiveness to different client requirements. The course further covers Java Clients for RESTful Services, introducing tools like Spring's RestTemplate to craft effective client-side communication.
Common REST patterns such as GET, POST, PUT, and DELETE are explored, alongside insights into client-side and server-side programming practices. The course wraps up with advanced topics in Spring Boot Web/Security, providing a view into boot's embedded server and security capabilities..
By completing this learning journey, you'll emerge with a foundational understanding of Spring, Spring Boot, and Spring REST, empowered to create, manage, and optimize Spring applications within your organization. Prepared to take on more complex challenges, you’ll harness the potential of Spring technologies to drive innovation and efficiency in web development projects.
- Understand the core principles of Spring, and of Dependency Injection (DI) / Inversion of Control
- Use the Spring Core module and DI to configure and wire application objects (beans) together
- Know the different types of metadata (XML, annotations/@Component, and Java Configuration/@Configuration), and how and when to use them
- Use Spring Boot to simplify dependency management and configuration
- Understand and use Boot’s auto-configuration
- Customize Boot’s behavior with properties and in other ways
- Understand and use the complete capabilities of the Core module, such as lifecycle events, bean scopes, and the Spring API
- Work with the ORM (Object-Relational Mapping) module to integrate Spring with technologies such as JPA
- Use Spring Data to automatically generate JPA-based repository classes
- Understand and use Spring’s transaction support, including the easy-to-use Java annotation support
- Understand REST, and use Spring REST to build RESTful services
- Use Ajax-based front ends with Spring REST
- Use RestTemplate to create Java REST clients
- Introduction to Spring
- Overview of Spring Technology
- Motivation for Spring, Spring Architecture
- The Spring Framework
- Maven and Spring
- Spring Introduction
- Declaring and Managing Beans
- ApplicationContexts - The Spring Container
- XML and @Component/@Named Config
- Dependencies and Dependency Injection (DI)
- Examining Dependencies
- Dependency Inversion / Dependency Injection (DI)
- DI in Spring - XML and @Autowired
- Spring Boot Quickstart
- Overview of Spring Technology
- Configuration in Depth
- Java Based Configuration (@Configuration)
- Overview, @Configuration, @Bean
- Dependency Injection
- Resolving Dependencies
- Integrating Configuration Types
- XML and @Component Pros/Cons
- @Configuration Pros/Cons
- Choosing a Configuration Style
- Integrating with @Import and <import>
- Bean Scope and Lifecycle
- Singleton, Prototype, and Other Scopes
- Configuring Scope
- Bean Lifecycle / Callbacks
- Java Based Configuration (@Configuration)
- Intro to Spring Boot
- Spring Boot Overview
- Spring POMs with Boot Parents
- Spring Boot Starters
- SpringApplication – Apps With main()
- CommandLineRunner and ApplicationRunner
- Working with Properties
- Boot Property Files
- Using Application Properties
- Customizing Behavior with Boot Properties
- Spring Testing
- Testing and JUnit 5 Overview
- Writing Tests - Test Classes, asserts, Naming Conventions
- Running Tests - IDE, Maven
- Test Fixtures - setup and teardown
- Spring TestContext Framework
- Overview
- Configuration
- Running Tests
- Testing and JUnit 5 Overview
- Database Access with Spring/Boot
- Overview of Spring/Boot database support
- DataSources, Boot Auto-Configuration, and Custom Configuration
- Boot - Embedded Database
- Using Spring/Boot with JPA
- Spring Boot Auto-Configuration and Scanning
- Customizing the Configuration
- Creating a JPA Repository/DAO Bean - @PersistenceUnit, @PersistenceContext
- Spring Data Overview
- Overview and Architecture
- Configuring Spring Data
- Repositories and JPA Repositories
- Using CrudRepository
- Using Spring Data
- Naming Conventions for Querying
- Creating more Complex Queries
- Query Configuration
- [Optional] Configuration Without Boot
- Managing the EntityManager (EM)
- LocalContainerEntityManagerFactoryBean and Container-managed EMs
- JEE and JNDI Lookup of the EM
- Configuration and Vendor Adaptors
- Overview of Spring/Boot database support
- Spring Transaction (TX) Management
- Overview
- Declarative TX Management (REQUIRED, etc.)
- TX Scope and Propagation
- Configuration and Boot Auto-Configuration
- Pointcut-based Configuration of Transactions
- RESTful Services with Spring
- REST Overview and Principles
- DispatcherServlet - Boot Auto-Config and Customization
- Requests and Responses - GET, POST, PUT, DELETE
- Spring's REST API
- Spring support for REST
- @RequestMapping/@PathVariable, @RequestBody, @ResponseBody
- URI Templates and @PathVariable
- Controllers with @RestController
- Ajax Overview
- Working with JSON and XML
- Generating JSON
- JSON Overview
- JSON Representations for Resources
- Message Converters
- [Optional] Generating XML
- JAXB and Jackson Message Converters for XML
- JAXB / @XmlRootElement
- Content Negotiation
- Generating JSON
- Java Clients for RESTful Services
- Client Requirements and Spring's RestTemplate
- getForObject() / getForEntity()
- Other RestTemplate Methods
- Accessing Headers / exchange()
- Common REST Patterns
- GET: Read
- POST: Create
- PUT: Update
- DELETE: Delete
- Programming on server side, and client side (with RestTemplate)
- Boot Configuration and Customization
- Logging and its Configuration
- Profiles
- Other Configuration
- Spring Boot Web/Security
- Spring Boot Web
- Boot's Embedded Servers
- Classic Spring MVC Configuration
- Spring Boot Security
- Spring Boot Data REST
- Additional Spring/Boot Features
- Updates to Spring Core
- Jakarta EE 9 Baseline
- WebFlux / Reactive Web Framework
- Boot Actuator
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Experience in the following is required for this Spring class:
- Working knowledge of Java programming, including use of inheritance, interfaces, and exceptions
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors