Description
In this course, you will learn :
- Understand the basic concepts of the Spring Framework
- Learn how to use Spring Boot to kickstart the development process
- Interact with databases using Spring's support for JDBC and JPA
- Learn the Spring MVC architecture
- Use AOP for implementing cross-cutting concerns in Spring
- Implement unit testing in the Spring framework
Syllabus :
1. Spring Basics
- Creating a Project
- Dependency
- Decoupling Components
- Managing Beans and Dependencies
- Autowiring By Type — @Primary
- Autowiring By Name
- Autowiring — @Qualifier
- Constructor and Setter Injection
2. Spring In-depth
- Bean Scope
- Mixing Bean Scope
- @ComponentScan
- Bean Lifecycle: @PostConstruct, @ PreDestroy
- Bean Lifecycle: Prototype Scoped Beans
- Contexts and Dependency Injection Framework
- Spring Application Configuration
- XML Application Configuration
- XML Configuration with Java Annotations
- Stereotype Annotations
- Using an External Property File
3. Spring Boot
- What is Spring Boot?
- Creating a REST Service
- Developer Tools
- Actuator
- Comparing Spring Boot and Spring MVC
4. Spring JDBC
- Creating a JDBC Starter Project
- Setting up the H2 Database
- SELECT Query
- INSERT Query
- UPDATE Query
- DELETE Query
- DDL Queries
- Custom RowMapper
- Connecting to Other Databases
5. Spring Data JPA
- What is JPA?
- Defining an Entity
- Creating a Repository
- CRUD Operations
- JPQL Named Query
- Spring Data JPA
6. Spring Aspect Orientated Programming (AOP)
- Aspect Oriented Programming
- Terminology
- Defining an Aspect
- Pointcut Expressions
- After Aspect
- Around Aspect
- JoinPoint Configuration File
- Defining a Custom Annotation for Aspects
7. Spring MVC
- Setting Up a Web Application
- Creating a Servlet
- Using a JSP File
- Passing Parameters with GET request
- Scriptlets and Scriptlet Expressions
- POST request
- Spring MVC Architecture
- Spring MVC Components
- Configuring a Spring MVC Application
- Controller
- View
- HTML Forms
- ModelMap
- @RequestParam Annotation
- Spring MVC Form Tags
- Form Data Validation
- Validating Required Fields
- Validating Numbers
- Validating Dates
- Validating Patterns with Regular Expressions
- Custom Error Messages
- Custom Validation Annotation
- Dispatcher Servlet Java Configuration
8. Unit Testing in Spring
- JUnit
- Writing a Unit Test
- Assert Methods
- JUnit Test Lifecycle Annotations
- Stubbing and Mocking
- Mockito Annotations
- Unit Testing in Spring
- Unit Testing Using Spring Boot
- Unit Testing for Java Context
- Unit Testing for XML Context
- Spring Unit Testing with Mockito
9. Interview Questions
- Spring Framework
- IoC and Dependency Injection
- Beans
- Spring Annotations
- Spring Configuration and Component Scan
- Autowiring and Misc Questions
- Spring Boot
- Spring Data JDBC and JPA
- Spring MVC
- Spring AOP