Video description
This course takes you head first into the exciting world of Spring development!
It gets you up and running working with existing Spring applications, and gives you the confidence to start building your own. In this course we don't waste time going into the esoteric parts of the Spring Framework you'll never encounter. Instead, we focus on the stuff you need to get the job done and develop applications.
You'll get to know all the major parts of the core framework, such as:
- The Spring container and how it manages your beans for you and delivers a flexible runtime environment for applications
- The concept of dependency injection—how it works and how it is applied in Spring
- Inversion of Control—what it is and why it's so useful
- Spring property management and how to manage application properties and state
- Profiles in Spring and how they are used and applied
- Proxies and proxying—and how they work to magically do things such as making service methods transactional
- The various lifecycle and callback interfaces and events you need to know to integrate with and access lower-level components of the Spring container
- Spring JDBC and how to work with databases
- Working with Spring Aspects to apply Aspect Oriented Programming in the container
- Spring MVC and web application development with Spring
and much much more!
Distributed by Manning Publications
This course was created independently by Matt Speake and is distributed by Manning through our exclusive liveVideo platform.
About the Technology
Spring is the most in-demand skill for Java developers beyond knowledge of the Java programming language itself. The open-source Spring Framework is a lightweight and flexible infrastructure for developing applications in Java. Spring is built around dependency injection, which means it reduces the coupling—and dependencies—between app layers so development is faster and less tedious.
About the Video
What's Inside
- Confidently use the Spring Framework container in the workplace
- Practical understanding of the concepts of dependency injection, inversion of control, and autowiring and the Spring container
- Use XML, annotation-based, and Java-based configuration to create Spring-managed beans in the container
- Understand how the Spring container is used in modern Java applications
- Use properties in Spring applications
- Apply profiles in Spring applications to manage environment-specific property sets
- Work with the Spring framework and its dependency injection and autowiring features
- Use the Spring JDBC to work with databases
- Apply Spring Aspects to tackle cross-cutting project concerns
- Spring MVC and web development with Spring
About the Reader
- Basic Java skills
- An understanding of the basic concepts of object-oriented programming
About the Author
Matt Speake is a professional Java software engineer and have been programming for more than 20 years, working everywhere from small startups to large investment banks.
He started JavaEasily in 2018 so he could produce courses focused on teaching Java technology to students all around the world.
Since then he has been busy creating the Java Easily website and publishing courses and articles on different aspects of Java.
Feel free to check out the JavaEasily YouTube channel and follow it on Facebook and Twitter.
Quotes
Table of contents
- Getting Started
- Creating the Spring Container with Application Contexts
- Creating, Retrieving and Using Spring-Managed Beans
-
Understanding Dependency Injection and Inversion of Control
- Section Introduction
- Coding Beans to Use Constructor Dependency Injection
- Interpreting a Spring Container Exception
- Applying Constructor Dependency Injection to XML Configuration
- Verifying the Constructor Dependency Injection with the Debugger
- The Shareability of Beans in an IoC Container
- The Benefits of Dependency Injection in an IoC Container
- The Hollywood Principle
- Coding Beans to Use Setter Dependency Injection
- Applying Setter Dependency Injection in XML Configuration
- Verifying the Setter Dependency Injection with the Debugger
-
Autowiring Dependencies in the Spring Container
- Section Introduction
- Adding Component Scanning to Autodetect Spring Managed Bean Annotations
- Coding Beans to be Automanaged and Autowired by Spring via Annotations
- The Advantage of Annotation-based Configuration over XML Configuration
- Verifying the Annotation-driven Autowired Beans
- Spring’s Stereotype Annotations for Better Code Readability
- Setter Dependency Injection with Annotations
- Constructor Dependency Injection with Annotations
- Using the Annotation-Based Application Context
- Creating a Java Configuration Class
- Applying Java-based configuration with @Bean
- Using Scopes with Java-based Configuration
- Modeling a More Complex Application to Demonstrate Autowiring Ambiguity Issues
- Resolving Ambiguous Arguments of the Same Type by Narrowing the Reference Type
- Resolving Ambiguous Arguments of the Same Type by Using @Qualifier
-
Using Properties and Profiles in Spring Projects
- Section Introduction
- Injecting Properties read from a File with @Value in Spring Managed Beans
- Exploring Property Overriding in Spring
- Accessing and using properties with Property Placeholder in XML Configuration
- Specifying default properties for property values
- Exceptions for Missing property keys in Spring
- Resolving and Using a Property Value in a Bean definition in XML Configuration
- Accessing the Current Active Profiles with the Environment interface
- Setting current active profile programmatically and through a property switch
- Creating Profile-specific bean configuration
- Conditional Beans with @Profile
-
Getting to Know the Spring Container
- The Proxy Design Pattern
- Seeing Proxies in Action
- The Disadvantages of a Regular Proxy
- Understanding JDK Dynamic Proxies
- Dynamic Proxies in Spring
- Understanding How Spring Makes Service Methods Transactional using Proxies
- Spring Managed Bean Lifecycle Callback Methods
- JDK Standard Lifecycle Annotations (@PostConstruct and @PreDestroy)
- The Sequence of Spring Container Callbacks on a Spring Managed Bean
- Application Container Callbacks and Events
- Using the Aware Interfaces to Access Lower-Level Spring Framework Components
- Accessing Databases with Spring
- Aspect-Oriented Programming with Spring
-
Web Application Development in Spring
- Preparing a Maven Project to Use Spring MVC
- Registering the Dispatcher Servlet as Front Controller
- Creating the Web Application Context
- Creating a Controller Class
- Configuring the Jetty Plugin in Maven to Run a Web App
- Setting Up Remote Debugging of a Web App
- Understanding the Dispatcher Servlet Processing Flow
- Writing a Controller to Service Web Requests
- Rendering a JSP-Based View with View Resolvers
- Understanding How a Request is Serviced
- Passing a Model to the View for More Dynamic Pages
- Injecting the HTTP Servlet Request and Response into a Controller
- Passing Request Parameters and Query Strings to a Controller
- Using Path Variables to Access Parts of the Request Path
Product information
- Title: Mastering Spring Framework Fundamentals
- Author(s):
- Release date: December 2022
- Publisher(s): Manning Publications
- ISBN: 10000DIVC2022183
You might also like
video
Mastering Spring Framework Fundamentals
By promoting excellent coding practices and speeding up development time, the Spring framework has proved its …
video
Spring Framework Master Class: Java Spring - The Modern Way
Do you want to get well-versed with the Spring framework and become a modern Spring developer? …
video
Spring and Spring Boot Fundamentals, 3E
What is this learning path about, and why is it important? For many developers, Spring is …
video
Spring Boot Fundamentals
Spring is one of the most widely used frameworks in the industry. Whether you are an …