• 大小: 73KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-28
  • 语言: 其他
  • 标签: spring  

资源简介

自己实现的spring ioc+mvc框架,具体流程参考的spring,可以加深对spring源码流程的理解

资源截图

代码片段和文件信息

package com.fanday.demo;

import com.fanday.ioc.annotation.Autowire;
import com.fanday.ioc.annotation.Controller;
import com.fanday.ioc.annotation.RequestMapping;
import com.fanday.ioc.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping(“/web“)
public class MyControllor {

    @Autowire(“myservice“)
    private MyService service;

    @RequestMapping(“/test“)
    public void test(HttpServletRequest req HttpServletResponse resp@RequestParam(“word“) String word){
        service.say(word);
        try {
            resp.getWriter().print(word);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件          6  2018-07-17 10:13  mySpring\.idea\.name

     文件        499  2018-07-17 14:31  mySpring\.idea\artifacts\spring_war_exploded.xml

     文件        603  2018-07-18 09:30  mySpring\.idea\compiler.xml

     文件        513  2018-07-17 10:13  mySpring\.idea\misc.xml

     文件       8792  2018-07-17 10:33  mySpring\.idea\uiDesigner.xml

     文件      56720  2018-07-18 17:26  mySpring\.idea\workspace.xml

     文件        142  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\index.html

     文件         89  2018-07-17 17:14  mySpring\out\artifacts\spring_war_exploded\meta-INF\MANIFEST.MF

     文件         27  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\applicationContext.properties

     文件       1404  2018-07-17 17:14  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\demo\MyControllor.class

     文件        629  2018-07-17 16:51  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\demo\MyService.class

     文件        497  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\annotation\Autowire.class

     文件        498  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\annotation\Component.class

     文件        500  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\annotation\Controller.class

     文件        522  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\annotation\RequestMapping.class

     文件        509  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\annotation\RequestParam.class

     文件        452  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\ApplicationContext.class

     文件        330  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\BeanRegister.class

     文件       3554  2018-07-17 16:51  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\support\AnnotationApplicationContext.class

     文件       1446  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\support\BeanCreater.class

     文件       1185  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\support\BeanDefinition.class

     文件       2316  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\support\BeanDefinitionGenerator.class

     文件       2407  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\support\BeanDefinitionParser.class

     文件       2359  2018-07-17 15:25  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\ioc\support\Populator.class

     文件       1240  2018-07-17 16:51  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\mvc\Handler.class

     文件       3670  2018-07-17 16:51  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\mvc\HandlerAdapter.class

     文件       8099  2018-07-17 17:13  mySpring\out\artifacts\spring_war_exploded\WEB-INF\classes\com\fanday\mvc\servlet\DispatcherServlet.class

     文件        841  2018-07-17 17:14  mySpring\out\artifacts\spring_war_exploded\WEB-INF\web.xml

     文件        672  2018-07-18 10:03  mySpring\pom.xml

     文件        644  2018-07-17 14:31  mySpring\spring.iml

............此处省略92个文件信息

评论

共有 条评论