![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springmvc
与时间为伴_
这个作者很懒,什么都没留下…
展开
-
spring mvc 文件上传下载
web.xml、applicationContext.xml配置不变。mvc-servlet.xml添加 1、上传单个文件form表单: java代码:@RequestMapping("upload.shtml") public Strin原创 2013-09-12 14:42:39 · 1163 阅读 · 0 评论 -
spring mvc 后台获取参数的方式
1、通过@PathVariabl注解获取路径中传递参数JAVA @RequestMapping(value = "/{id}/{str}") public ModelAndView helloWorld(@PathVariable String id, @PathVariable String str) { System.out.println(id); System.原创 2013-09-15 15:30:21 · 975 阅读 · 0 评论 -
spring mvc 接收时间参数
controller继承SimpleFormController,加入:@InitBinder protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { Da原创 2013-11-01 18:59:04 · 2512 阅读 · 0 评论 -
spring security remember-me
spring-security 记住密码功能实现代码原创 2016-08-29 12:12:50 · 1112 阅读 · 0 评论