上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 52 下一页
摘要: 参考来源:http://blog.csdn.net/qq924862077/article/details/54286976?utm_source=gold_browser_extension RequestToViewNameTranslator可以在处理器返回的View为空时使用它根据Reque 阅读全文
posted @ 2017-05-27 11:08 奋斗的少年WH 阅读(265) 评论(0) 推荐(0)
摘要: package com.wh.handler; /** * @ModelAttribute绑定请求参数到命令对象 * @ModelAttribute一个具有如下三个作用: * * ①绑定请求参数到命令对象:放在功能处理方法的入参上时,用于将多个请求参数绑定到一个命令对象, * 从而简化绑定流程,而且自动暴露为模型数据用于视图页面展示时使用; * * ②暴露表单引用对象为模型数据... 阅读全文
posted @ 2017-05-27 09:40 奋斗的少年WH 阅读(423) 评论(0) 推荐(0)
摘要: userid2 pathvariable 阅读全文
posted @ 2017-05-27 09:28 奋斗的少年WH 阅读(1374) 评论(0) 推荐(0)
摘要: package com.wh.handler; /** * @RequestParam是传递参数的. * @RequestParam用于将请求参数区数据映射到功能处理方法的参数上。 * * public String queryUserName(@RequestParam String userName) * 在url中输入:localhost:8080/?userName... 阅读全文
posted @ 2017-05-26 22:00 奋斗的少年WH 阅读(633) 评论(0) 推荐(0)
摘要: 参考来源:http://blog.csdn.net/geloin/article/details/7444321 浏览器form表单只支持GET与POST请求,而DELETE、PUT等method并不支持,spring3.0添加了一个过滤器,可以将这些请求转换为标准的http方法,使得支持GET、P 阅读全文
posted @ 2017-05-26 11:30 奋斗的少年WH 阅读(1192) 评论(0) 推荐(0)
摘要: Dept.java Dao.java DaoImpl.java DeptService.java DeptServiceImpl.java DeptAction.java TestDept.java 阅读全文
posted @ 2017-05-26 11:16 奋斗的少年WH 阅读(333) 评论(0) 推荐(0)
摘要: 参考来源: http://blog.csdn.net/qq_32953079/article/details/52290208 1、导入相关jar包 commons-fileupload.jar commons-io.jar 2、配置web.xml文件 3、编写上传页面 4、配置springmvc- 阅读全文
posted @ 2017-05-26 11:06 奋斗的少年WH 阅读(246) 评论(0) 推荐(0)
摘要: 1、导入相关jar包 commons-fileupload.jar commons-io.jar 2、配置web.xml文件 3、编写上传页面 4、配置springmvc-servlet.xml 5、编写handler处理器 6、编写下载页面 阅读全文
posted @ 2017-05-26 08:41 奋斗的少年WH 阅读(187) 评论(0) 推荐(0)
摘要: package com.etc.pojo; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class SpUtil { static private Applica... 阅读全文
posted @ 2017-05-24 17:34 奋斗的少年WH 阅读(1268) 评论(0) 推荐(0)
摘要: package com.etc.test; import org.junit.Test; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.context.App... 阅读全文
posted @ 2017-05-24 17:22 奋斗的少年WH 阅读(933) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 52 下一页