Giter Club home page Giter Club logo

learn-spring4's Introduction

Spring 框架本身四大原则

  1. 使用POJO进行轻量级和最小侵入式开发
  2. 通过依赖注入和基于接口编程实现轻松耦合
  3. 通过AOP和默认习惯进行声明式编程
  4. 使用AOP和模板减少模式化代码

注解

无论是xml 配置、注解配置还是Java配置,统称为配置元数据,所谓元数据就是描述数据的数据

Java配置

@org.springframework.context.annotation.Configuration 声明当前类是个配置类,相当于Spring 配置的xml文件
@org.springframework.context.annotation.Bean 注解方法上,声明当前方法的返回值是Bean
@Inject@Resource@Autowired 的是等效的,都是注入bean

Spring Aop

AOP的存在就是为了解耦,AOP可以让一组类共享相同的行为

learn-spring4's People

Contributors

xiaozefeng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.