Giter Club home page Giter Club logo

spingmini's Introduction

spirngmini

仿写springMvc简化版

已实现功能为主,部分的文件有修改。

理解SpringIOC、DI、MVC的基本执行原理。

IOC IOC是Inversion of Control的缩写,IOC中最基本的技术就是“反射(Reflection)”编程。利用依赖关系注入的方式,实现对象之间的解耦。同时IOC也是一个单例的Map

DI IOC的别名:依赖注入(Dependency Injection)。依赖注入(DI)和控制反转(IOC)是从不同的角度的描述的同一件事情,指就是通过引入IOC容器,利用依赖关系注入的方式,实现对象之间的解耦

MVC
1、配置web.xml
2、设定init-param
3、设定url-pattern
4、设置Annotation
5、调用init()方法
6、IOC容器初始化
7、扫描添加了注解的相关类
8、创建实例化并保存至容器
9、进行DI操作
10、初始化HandlerMapping
11、调用doPost()/doGet()
12、匹配HandlerMapping
13、反射调用method.invoker()
14、response.getWriter().write()

spingmini's People

Contributors

wesleyforjava avatar

Stargazers

 avatar  avatar  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.