Spring, known as the Spring of J2EE, is an open source lightweight Java development framework with inversion of Control (IoC) and Aspect Oriented (AOP) cores. JavaSpring framework can manage transaction flexibly by declarative way and improve development efficiency and quality.

 

The Spring framework is not limited to server-side development. Any Java application can benefit from Spring in terms of simplicity, testability, and loose coupling. The Spring framework is also a super glue platform, providing the ability to glue other technologies and frameworks in addition to its own capabilities.

 

This Java Spring tutorial provides an easy-to-understand introduction to the Spring development process, and provides examples for each knowledge point to help readers get started quickly.

 

  • What is the Java Spring framework? What are its benefits?

     

  • Spring architecture in detail

     

  • Introduction to the Spring directory structure and basic JAR packages

     

  • Spring IoC containers: BeanFactory and ApplicationContext

     

  • The first Spring program

     

  • Spring DI (dependency injection) implementation: property injection and construct injection

     

  • Configuration and common properties of Spring beans

     

  • Spring instantiates beans in three ways

     

  • Scope of beans in Spring

     

  • The life cycle of Spring beans

     

  • Spring is based on XML assembly beans

     

  • Spring assembles beans based on annotations

     

  • Spring automatically assembles beans

     

  • What is Spring AOP (Aspect Oriented Programming)?

     

  • Spring JDK Dynamic Proxy (with instance)

     

  • Spring notification types and use ProxyFactoryBean to create AOP proxies

     

  • Spring uses AspectJ for AOP development: XML-based and annotation-based

     

  • Spring’s JDBCTemplate profile

     

  • Spring transaction management interface

     

  • Spring declarative transaction management (xmL-based implementation)

     

  • Spring declarative transaction management (annotation-based approach)

     

  • SSH framework (Struts2+Spring+Hibernate) build integration detailed steps

     

  • Test the SSH framework for hierarchical integration and verify that transactions are valid

     

  • SSM (Spring+Spring MVC+MyBatis) framework integration and construction detailed steps