码迷,mamicode.com
首页 >  
搜索关键字:requestmapping    ( 1366个结果
利用 spring mvc ResponseEntity 做文件下载
controller代码: @RequestMapping(value = "/cmpSts/{cmpId}", method = RequestMethod.GET) public ResponseEntity cmpSts(@PathVariable int cmpId, HttpServletRequest request, HttpServletResponse resp...
分类:编程语言   时间:2015-07-17 19:03:05    阅读次数:224
Spring
@Controller@RequestMapping(value = "/personal") 控制前和url@RequestMapping("/query_untreated_express_list.html")@ResponseBodypublic ResponseData> queryUnt...
分类:编程语言   时间:2015-07-17 11:18:12    阅读次数:150
从mysql中检索数据后,通过userId的链接去delete数据
1.controller.java:是个中间传值中间件 @RequestMapping(value = "/delete", method = RequestMethod.GET)//get通过地址来传递 ? ? public String delete(UserBean userBean,Model model) { int result = hello...
分类:数据库   时间:2015-07-16 08:26:00    阅读次数:194
Spring MVC重定向
测试成功。带参数的重定向。模拟情况:添加完信息后跳转到一个新页面,显示刚新增的信息。测试成功的几种方式。1.拼接urladdUser@RequestMapping("/addUser") public ModelAndView addUser(HttpServletRequest reques...
分类:编程语言   时间:2015-07-15 16:36:27    阅读次数:99
SpringMVC在上传文件的时候提示The current request is not a multipart request错误
@RequestMapping("/insertOrder") @ResponseBody public Object insertOrder(String userId,HttpServletRequest req) { MultipartHttpServletRequestmultip...
分类:编程语言   时间:2015-07-15 12:32:28    阅读次数:1678
Spring MVC 后台获取前台form参数值(requestparam)
Spring MVC 获取前台参数值得java代码: @RequestMapping(value = "/loginCheck") public String loginCheck( @RequestParam("username") String username, @RequestParam("password") String password) { U...
分类:编程语言   时间:2015-07-13 10:23:33    阅读次数:353
Springmvc异步上传文件
controller@Controller@RequestMapping(value = "/upload")public class UploadController { @RequestMapping(value = "/u...
分类:编程语言   时间:2015-07-12 18:52:58    阅读次数:134
项目中的2个支付回调接口
@RequestMapping(value = "callbackAlipay", method = RequestMethod.POST) @ResponseBody public ResponseEntity callbackAlipay( @RequestParam(value = "d...
分类:其他好文   时间:2015-07-10 18:38:29    阅读次数:288
spring mvc ajaxfileupload文件上传返回json下载问题
问题:使用spring mvcajaxfileupload文件上传在ie8下会提示json下载问题解决方案如下:服务器代码: @RequestMapping(value = "/addAnalysis", method = RequestMethod.POST) public void ...
分类:编程语言   时间:2015-07-09 13:11:08    阅读次数:151
SpringMVC(六)POJO类作为 @RequestMapping方法的参数
Command or form objects to bind request parameters to bean properties (via setters) or directly to fields, with customizable type conversion, dependin...
分类:移动开发   时间:2015-07-07 16:24:53    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!