2020年1月12日

SpringMVC的请求处理流程源码剖析

摘要: springmvc执行流程剖析 总体流程图: org.springframework.web.servlet.DispatcherServlet#doDispatch // 所有的请求进来的时候,都会走到这个方法 @SuppressWarnings("deprecation") protected 阅读全文

posted @ 2020-01-12 21:01 ~码铃薯~ 阅读(110) 评论(0) 推荐(0) 编辑

SpringMVC框架-使用注解编写的处理请求和映射-@Controller @RequestMapping

摘要: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee 阅读全文

posted @ 2020-01-12 20:53 ~码铃薯~ 阅读(168) 评论(0) 推荐(0) 编辑

SpringMVC初尝试

摘要: 注意:找内置的类的时候,ctrl+shift+T快捷键的使用,现在我们就写一个简单的springmvc的小demo项目整体架构。 web.xml配置文件中配置核心控制器dispatcherServlet 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web- 阅读全文

posted @ 2020-01-12 11:21 ~码铃薯~ 阅读(125) 评论(0) 推荐(0) 编辑

导航