day04-spring

springMvc
DispatcherServlet(前端控制器)
HandlerMapping(映射处理器)
Controller(处理器)
ModeAndView(视图名和数据)
ViewResolver(视图解析器)

classpath:表示依据类路径去查找配置文件

【系统分成】以后讲

1.配置文件
写controller

1.web.xml
2.controller
3.hello.jsp
4.配置 handlerMapping和viewResolver 实例化

internalREsourceViewResolver 类型


注解扫描作用是,让@RequestMapping起作用

今日事今日毕
原文地址:https://www.cnblogs.com/gjack/p/8674484.html