An open API service indexing awesome lists of open source software.

https://github.com/mindula-dilthushan/spring-demo

This is a first Spring Theory Project
https://github.com/mindula-dilthushan/spring-demo

Last synced: 6 months ago
JSON representation

This is a first Spring Theory Project

Awesome Lists containing this project

README

          

# Spring-Demo-Tutorial

## Spring context and lifecycle callbacks

![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/Spring%20context%20and%20bean%20lifecycle%20callbacks.png)

### Singleton

![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/singleton.jpg)

### Prototype

* SpringBean 1, SpringBean 2, SpringBean 3 (@Component) comment and DBConnection class (@Base) comment. Only SpringBean 4

![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/prototype.jpg)

## Spring Dependency

### Loss Couple
![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/Loss%20Couple.jpg)

### Property injection, Constructor injection, Setter Method Injection, Interface through injection
![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/property%20injection.jpg)

## Full Mode vs Light Mode

### Module 03
![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/FullMode%20vs%20LightMod.jpg)

## Configuration

### Module 04
![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/Configuration.jpg)

## Runtime Value Injection

### Module 05
![image](https://github.com/Mindula-Dilthushan/Spring-Demo-Tutorial/blob/master/assets/Runtime%20Value%20Injection.jpg)

## Spring WEB MVC

### Spring Web MVC Works
![mindula](https://github.com/Mindula-Dilthushan/Spring-Demo/blob/master/assets/Spring_MVC_Works.png)

#### Spring Web MVC [Details From Javatpoint](https://www.javatpoint.com/spring-mvc-tutorial)

- Model - A model contains the data of the application. A data can be a single object or a collection of objects.

- Controller - A controller contains the business logic of an application. Here, the @Controller annotation is used to mark the class as the controller.

- View - A view represents the provided information in a particular format. Generally, JSP+JSTL is used to create a view page. Although spring also supports other view technologies such as Apache Velocity, Thymeleaf and FreeMarker.

- Front Controller - In Spring Web MVC, the DispatcherServlet class works as the front controller. It is responsible to manage the flow of the Spring MVC application.

## Spring Data JPA

- Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement JPA based repositories. This module deals with enhanced support for JPA based data access layers. It makes it easier to build Spring-powered applications that use data access technologies.