Springboot Study Notes (1) - Spring Overview

A, Spring Evolution

  1, xml configuration

    Advantage is that, when modifying the configuration, the code does not need to move. The disadvantage is disposed too much, resulting in separation of code and configuration after service, traffic is split picture.

  2, Configuration notes

    After JDK1.5, with annotations, Component and Service notes such as greatly reducing the amount of configuration. At this into practice: the basic configuration (such as databases, MVC) using xml applications, service configuration using annotations (@ Component, @ Contoller, @ Service and @Repository).

  3, Java Configuration

    The benefits of Java configuration that makes you a better understanding of Bean configuration.

Two, Spring module

  Spring to provide enterprise-class development program framework for simple one-stop solution. It provides the IoC container, AOP, data access, Web development, testing and messaging support.

 

Three, Spring Framework itself four principles

  (1) using the POJO and lightweight at most intrusive development

  (2) by a loose coupling and dependency injection oriented programming interface

  (3) conducted by the AOP and declarative programming default habit (convention)

  (4) using AOP and template (Template) reduction mode code

Guess you like

Origin www.cnblogs.com/tigerhsu/p/11333928.html