Spring (1)-Spring overview

Table of contents

1. Introduction to Spring Framework

2. Understand the idea of ​​the framework


1. Introduction to Spring Framework

spring全家桶:spring , springmvc ,spring boot , spring cloud

spring: Appeared around 2002 to solve the difficulty of enterprise development. Ease the management between project modules,

The management between classes and classes helps developers create objects and manage relationships between objects.

Spring is a java framework, a lightweight, open source framework developed using the java language. It can be used in both j2se and j2ee.

Spring is also called: container, spring is used as a container, and it contains java objects, allowing spring to create java objects and assign values ​​​​to properties.

spring core technology ioc, aop It can realize decoupling between modules and classes.

Dependency : classa uses the attributes or methods of classb, which is called classa depends on classb

How to learn the framework: A framework is a piece of software written by others.

  • Know what the framework can do, mybatis-access the database, and perform additions, deletions, changes, and queries on the data in the table.
  • The syntax of the framework. To complete a function, the framework needs certain steps to support.
  • The internal implementation of the framework, how to do it inside the framework. What is the principle.
  • Through learning, a framework can be implemented

2. Understand the idea of ​​the framework

1) IOC - the idea of ​​inversion of control, the specific implementation of technology DI (Dependency Injection)

2) AOP——aspect programming idea, specific implementation technology Spring AOP, AspectJ (mainstream)

おすすめ

転載: blog.csdn.net/lu_xin5056/article/details/128972843