Spring tutorial for beginners and professionals with examples in Eclipse on Basics, inversion of control (IoC), dependency injection, bean scopes, bean life cycle, inner beans, auto-wiring, different modules, aspect-oriented programming (AOP), database access (JDBC), Transaction Management, Web MVC framework, Web Flow, Exception handling and more.
Spring Framework is one of the most popular Java EE frameworks. It is an open-source and lightweight framework created by Rod Johnson in June 2003.
Core principles of Spring Framework:
- Aspect Oriented Programming (AOP).
- Dependency Injection (DI).
Advantages of Spring Framework:
1. Lightweight:
-
- Spring framework is a lightweight framework because of its POJO model implementation.
2. Non-invasive approach:
-
- As we know struts force a programmer to extend the Action Class but Spring framework doesn’t force a programmer to extend class or implement interface given by Spring API.
3. Loose Coupling:
-
- Because of the dependency injection concept, spring objects are loosely coupled.
4. Modular fashion:
-
- Spring framework is designed in a modular fashion. A programmer can use only needed modules and ignore the rest.
5. Easy Testing:
-
- Dependency injection and the POJO model make it easy to test an application.
6. Transaction management interface:
-
- Spring framework provides a transaction management interface for transaction management.
7. No need for an application server:
-
- Struts or EJB applications require an application server to run but a spring application doesn’t need an application server.
8. MVC framework:
- Spring framework is a great alternative to web MVC frameworks like Struts.
Java Spring tutorial:
- Spring framework architecture modules
- Spring IoC container types
- Spring bean
- Spring bean scopes
- Spring bean life cycle
- Spring callback methods
- Spring hello world example in eclipse
Spring bean definition inheritance tutorial:
Spring dependency injection (DI) tutorial:
- Spring dependency injection tutorial
- Spring constructor based injection
- Constructor injection type ambiguities in spring
- Setter based dependency injection
- Spring dependency injection collections
Spring AOP tutorial:
- Spring AOP tutorial
- Spring AOP AspectJ Xml Configuration Example
- Spring AOP AspectJ Annotation Configuration Example
Spring MVC framework tutorial:
- Spring MVC framework tutorial
- Spring MVC configuration file
- Spring MVC hello world tutorial
- Spring MVC multiple controller tutorial
- Spring mvc login tutorial
- Spring MVC form handling tutorial
- Spring MVC exception handling tutorial
- Spring MVC tutorial
Spring SpEL tutorial:
- Spring spel tutorial
- Spring spel hello world example
- Spring spel operators example
- Spring spel ternary operator example
- Spring spel variable example
- Spring spel bean reference tutorial
- Spring spel method invocation example
- Spring spel list map example
- Spring spel regex tutorial
Maven Eclipse Spring
Spring security tutorial
- Spring security tutorial
- Spring security architecture diagram
- Spring security maven dependency
- Spring security hello world xml
- Spring security hello world annotation
- Spring security login
- Spring security custom login annotation
- spring security form login using database example
- spring security limit login attempts example
- Spring security remember me
- Spring security form based authentication
- Spring security method level
- spring security hibernate annotation example
Spring boot tutorial
- spring boot tutorial
- Spring boot overview
- spring boot architecture diagram and components
- Spring boot starter parent in pom maven repo
- Spring boot web app configuration
- Run spring boot application from command line
- Spring boot hello world
- spring boot + Spring MVC + Maven + JSP example
- spring boot restful web services example
- spring boot common application properties
- Spring boot change default tomcat port
- spring boot change context path
- spring boot configuration properties example
- Spring Boot Thymeleaf Hello World
- spring boot ajax example
- Spring boot with mysql database
- Spring boot with hibernate example
- Log sql statements in spring boot
- spring boot deploy war file to tomcat
Spring Autowire tutorial:
- Spring autowire tutorial
- Spring bean autowire by name
- Spring bean autowire by type
- Spring bean autowire by constructor
Spring JDBC tutorial:
- Spring jdbc tutorial
- Spring jdbc prepared statement
- Spring resultsetextractor tutorial
- Spring rowmapper