Description
In this course, you will :
- Develop a web application with Spring MVC and Hibernate.
- Understand the Dependency Injection and Inversion of control.
- Master the Spring Bean Life Cycle.
- Configure the Spring container for Dependency Injection.
- Perform database operations using Spring JDBC.
- Perform object/relational mapping (ORM) with Hibernate.
- Use Spring MVC and Hibernate in a Single Java Web App.
- Make Ajax Call Using JQuery and Spring MVC.
- Get introduced to the fundamentals of various other Spring Modules.
- Understand the Aspect Oriented Programming Terminology.
Syllabus :
1. Software Setup
- Install Java
- Install Eclipse
- Configure JDK In Eclipse
- Install Tomcat
- Configure Tomcat In Eclipse
- Download MySql and MySql Workbench
- Launch MySql workbench and create a database
- Windows Only -Install Mysql
- Windows Only - Install Mysql Workbench
- Install Postman
- Download the completed projects
- Notes from Theory Lectures
- Slides used in the course
- Troubleshooting Maven Projects
2. Spring Core Concepts
- What is Spring?
- Spring Modules
- Spring Container
- Two types of Dependency Injection
- The Spring Configuration File
- Data Types of dependencies
- Injecting Primitive Types
3. Setter Injection
- Create a Maven Project
- Create the Java Bean
- Create the Spring Configuration
- Troubleshooting Update
- Value as attribute
- Using p:schema or p: namespace
- Injecting Collections
- List - Create the Spring Bean
- List - Create the Configuration file
- List - Create the Test
- Running the test and flow
- Two More Things About List
- Set - Create , Configure and Test
- More about Set Injection
- Map - Create the Beans
- Map - Configure and Test
- Properties - Create and Inject
- Injecting Reference Types
- Reference Types - Usecase
- Reference Types - Configuration and Test
- Ref as Attribute and P Schema
4. Life Cycle Methods
- Life Cycle Methods
- Life Cycle Methods using xml configuration
- Configure pre shutdown hook
- Life Cycle methods using Spring Interfaces
- Update - Maven Dependency
- Life cycle methods using annotations
- Configuring support for all the annotations
5. Dependency Check , Inner beans and Scopes
- Dependency Check - Bean and Test Creation
- Dependency Check - In Action
- Inner Beans - Create the bean and config
- Inner Beans - Test
- Bean Scopes
- Scopes in action
- Dependency Check,Inner Beans and Scope Summary
6. Constructor Injection
- Create the Bean and Configuration
- Create and run the Test
- As Element , Attribute and C Schema
- Ambiguity Problem
- Using the type attribute
- Ambiguity Problem Variation
7. Using Properties
- Bean Externalization Introduction
- Configure and Test
- BeanDefinitionStoreException
- Using Properties
8. Auto-Wiring
- Create a Maven Project
- Auto-Wiring by type
- Three things about auto-wiring by type
- Auto-Wiring By Name
- Auto-Wiring using Constructor
- Using the @Autowired Annotation
- Using @Autowired at Field and Constructor Level
- Using the @Qualifier
9. Standalone Collections
- Create and inject a standalone list
10. Stereotype Annotations
- Create a object using annotations
- Using different object names
- Using the @Scope annotaion
- Using @Value Annotation with primitives
- Using @Value with Collection Types
- Auto-Wiring Objects
- Stereotype Annotations Summary
11. Spring Expression Language
- Using static methods
- Accessing Static Variables and Creating Objects
- Creating the String Type
- Expressing Boolean Types
12. Injecting Interfaces
- Configure the beans
- Create the test and flow
- Switching the implementation
- Using Annotations
- Use @Qualifier
13. Spring JDBC
- Create the Employee Table in the Database
- Create the Maven Project
- Steps to use the JDBCTemplate
- Configure the DataSource and JDBCTemplate
- Use the JDBCTemplate to perform Insert operation
- Flow Explained
- Create the DTO and DAOs Classes
- Implement the create method
- Create the configuration
- Create and run the test
- Application flow
- Update the row
- Delete a row
- Create the read method and RowMapper
- Implement the RowMapper and Test
- Test and Flow
- Reading multiple records
- Auto-wire JDBCTemplate
- Spring JDBC Summary
14. Spring ORM
- Spring ORM Introduction
- Mapping an Entity to a Database table
- Create the Product Table in the Database
- Create the Maven Project
- Create the Product Entity
- Create the Product DAO
- Create the configuration file
- Configure the SessionFactory
- Configure and use the Hibernate Template
- Transaction Manager
- Configure the TransactionManager
- Implement the create method
- Troubleshooting
- Create the Test and Run
- Implement the update method
- Implement the delete method
- Fetch a single record
- Fetch all the records
- Spring ORM Summary
15. Spring MVC
- Troubleshooting Spring MVC
- Create the Maven Project
- Step 1 : Configure the DispatcherServlet
- Step 2: Create the Spring Configuration
- Step 3: Configure the ViewResolver
- Step 4: Create and Configure the Controller
- Step 5: Create the view
- Run the application on the server
16. Sending data from Controller to UI
- Sending Primitive Types
- Using JSP Expression Language
- Sending the object data
- Create the object view
- Create the List Controller
- Create the List View
17. Sending data from UI to Controller
- User Registration UseCase
- Create the User Model and Registration View
- Create the first controller method
- Create the second controller method
- Test and Application Flow
- Using a response view
- Request Parameters Introduction
- Using the @RequestParam annotations
- Using the required and defaultValue attributes
18. Using ModelMap and String View
- Migrate the application
- Spring MVC Summary
19. Spring MVC and ORM
- UseCase Development Steps
- Create the User Table in the Database
- Create The Maven Project
- Configure the Front Controller
- Create the Spring Configuration
- Configure the View Resolver
- Coding Steps
- Create the Model
- Create the POJIs and POJOs
- Implement the DAO and Service methods
- Implement the Controller methods
- Display the create result
- Enable Annotations in Spring Configuration
- Update the entity name in the Spring Configuration
- Test and Application Flow Explained
- Implement the Load Users Method in DAO and Service
- Implement the Controller Method
- Create the JSP using JSTL
- Load Users Test
- Sort By Id
20. Spring MVC and AJAX Using JQuery
- AJAX Quick Introduction
- JQUERY Quick Introduction
- UserCase Steps
- Implement the DAO and Services Layer
- Implement the Controller
- Start the Front End Development
- Make the AJAX Call
- Handle the AJAX Response
- Test and Application Flow
- AJAX and JQuery Summary
21. Spring AOP
- AOP Terminology
- Pointcut Syntax
- AOP Frameworks
- AspectJ Annotations
- AOP Usecase
- Create the Maven AOP Project
- Create the POJOs
- Create the logging aspect
- Create the advices
- Create the pointcut expressions
- Create the Spring Configuration
- Configure the beans and aspects
- Create the test class
- Run the test and application flow
22. Java Configuration
- Usecase
- Create the Maven Project
- Create the DAO and Java Configuration
- Create the Test
- Create the Service Class
- Import Configurations
- Life Cycle Callbacks
23. Java Configuration For Web Applications
- Usecase
- Project to be migrated
- Migration Steps
- Step 1 - Update the pom.xml
- Step 2 - Create Java Configuration
- Configure Resource View Resolver
- Configure the default Servlet Handler
- Implement WebApplicationInitializer
- Configure Dispatcher Servlet Dynamically
- Web Application in action
24. Spring Boot
- Spring Boot Starter Projects
- How does Spring Boot work?
- Different ways to create a Spring Boot Project
- Create a Spring Boot Application Using Spring Initializer
- Import the project in to eclipse
- Create the DAO and Service classes
- Introduction to Spring Testing
- Test the Application
- Install Spring Tool Suite
- Create a Spring Boot Project Using STS
25. Spring Data JPA using Spring Boot
- Create the Spring Data JPA Project
- Spring Boot 2.X Updates
- Create an Entity
- Create a repository
- Configure the DataSource
- Create
- Read
- Update and Read All
26. Spring DATA JPA - Custom Finder Methods
- Implement custom finders
- Find By multiple fields
27. Spring Boot Web Quick Start
- Create a Spring MVC project
- Create a Controller
- Run the application
- Configuring the application context path
- Jars instead of Wars
28. Creating RESTFul Web Services
- What is REST?
- REST Using Spring
- Steps
- Add Maven Dependency
- Create the controller
- Get All Products
- Test findAll
- Implement Create
- Test Create
- Update Product
- READ Product by ID