Giter Site home page Giter Site logo

simple-zh-spring's Introduction

Simple-ZH-Spring

从0开始编写spring 框架,简易实现spring,理解核心原理。 参考咕泡学院tom老师的视频编写而成

常见注解实现

@Controller @Service @Autowired 等

1.加载配置文件

2.根据配置文件进行处理,比如扫描包和类

3.利用反射机制,把每一个类进行实例化,存储到自定义的IOC容器中

4.利用反射和自定义的IOC容器,把配置有@Autowired 注解的字段,进行依赖注入

5.初始化 controller 和 url之间的映射关系(利用注解@Controller 和 @ReqestMapping )

6.处理请求分发,根据映射关系把对应的url处理到对应的类

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.