![](https://img-blog.csdnimg.cn/20190918140158853.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringMVC
SpringMVC
多隆
这个作者很懒,什么都没留下…
展开
-
<context:annotation-config>和<context:component-scan>
参见以下链接:https://www.cnblogs.com/leiOOlei/p/3713989.htmlhttps://stackoverflow.com/questions/7414794/difference-between-contextannotation-config-vs-contextcomponent-scan/原创 2017-11-17 14:48:18 · 173 阅读 · 0 评论 -
<context:include-filter>和<context:exclude-filter>
参考以下链接http://jbutton.iteye.com/blog/1050136 https://www.cnblogs.com/chong518/p/5862990.html原创 2017-11-17 16:06:35 · 238 阅读 · 0 评论 -
<mvc:annotation-driven>和<context:annotation-config>
<context:annotation-config> declares support for general annotations such as @Required, @Autowired, @PostConstruct, and so on. <mvc:annotation-driven /> is actually rather pointless. It decl原创 2017-11-17 16:16:12 · 311 阅读 · 0 评论 -
SpringMVC的@SessionAttributes和@ModelAttribute用法
test.jsp<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><form action="/save" method="post" enctype="multipart/form-data"> <div class="form-group"> <lab原创 2017-11-14 16:14:58 · 385 阅读 · 0 评论 -
SpringMVC自定义分页
后台数据@RequestMapping(value = "/page", method = RequestMethod.GET) public String page(final Model model, @RequestParam(value = "page", required = false, defaultValue = "1") f原创 2017-11-13 17:40:55 · 790 阅读 · 0 评论 -
SpringMVC 视图解析器 - ViewResolver
SpringMVC原理当我们对SpringMVC控制的资源发起请求时,这些请求都会被SpringMVC的DispatcherServlet处理,接着Spring会分析看哪一个HandlerMapping定义的所有请求映射中存在对该请求的最合理的映射。然后通过该HandlerMapping取得其对应的Handler,接着再通过相应的HandlerAdapter处理该Handler。HandlerAda原创 2017-06-16 14:32:42 · 461 阅读 · 0 评论