![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringMVC
文章平均质量分 74
码上见高低
纸上得来终觉浅,绝知此事要躬行
展开
-
SpringMVC第四篇——处理器映射器,处理器适配器,视图解析器的配置
这两个注解的作用和来源:<mvc:annotation-driven/><bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value=""/> <property name="suffix" v原创 2018-02-14 15:20:14 · 8256 阅读 · 2 评论 -
SpringMVC第六篇——解决中文乱码(POST/GET提交)
SpringMVC中get和post中文乱码要分开解决:POST提交:只需要在web.xml中添加如下配置。post中文乱码就解决了。 拦截规则根据自己需求 <filter> <filter-name>encoding</filter-name> <filter-class>org.springframe...原创 2018-03-13 11:16:22 · 341 阅读 · 0 评论 -
SpringMVC第十篇——拦截器的配置和使用
Springmvc的配置文件中配置: <!-- SPringmvc的拦截器链--> <mvc:interceptors> <!-- 多个拦截器 --> <mvc:interceptor> <!-- 拦截所有 --> <mvc:mapping path="/**"/>原创 2018-03-15 13:08:41 · 386 阅读 · 0 评论 -
SpringMVC第九篇——使用集合接收参数(批量提交)
填入数据,批量更新;提交的表单:<form action="abc" method="post">1<input type="checkbox" name="id" value="1" >高度<input type="text" name="toollist[0].height" >长度<input type="text" name="toollist[0].width" >原创 2018-03-13 17:28:08 · 2436 阅读 · 0 评论 -
SpringMVC第七篇——使用对象接收参数
提交的表单:<form action="abc" method="post">姓名<input type="text" name="username" ><br>密码<input type="text" name="password" ><br>手机号<input type="text" name="phone" ><br><button type="submit">点原创 2018-03-13 16:28:42 · 2861 阅读 · 2 评论