摘要: 自定义一个拦截器方法,实现HandlerInterceptor方法 在SpringMVC配置文件中配置 阅读全文
posted @ 2016-07-20 11:30 蚂蚁1 阅读(280) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping("/testFileUpload") public String testFileUpload(@RequestParam("desc") String desc, @RequestParam("file") MultipartFile file) throws IOException{ System.out.println("desc: "... 阅读全文
posted @ 2016-07-20 11:10 蚂蚁1 阅读(86) 评论(0) 推荐(0) 编辑
摘要: /** * 1. 有 @ModelAttribute 标记的方法, 会在每个目标方法执行之前被 SpringMVC 调用! * 2. @ModelAttribute 注解也可以来修饰目标方法 POJO 类型的入参, 其 value 属性值有如下的作用: * 1). SpringMVC 会使用 val 阅读全文
posted @ 2016-07-20 10:37 蚂蚁1 阅读(260) 评论(0) 推荐(0) 编辑