springboot中怎么获取到原生的request
springboot吧
全部回复
仅看楼主
level 1
89008205 楼主
在开发springboot应用时,有多个文件要上传,现在想获取request对象后,解析request对象,但是request对象一直取不到!
类似如下:
@RequestMapping("/upload")
public void upload(HttpServeletRequest request){
}
request里取不到任何东西
2016年07月19日 09点07分 1
level 1
感觉是前台代码写的有问题吧
2016年07月23日 09点07分 2
level 1
1111
2016年09月18日 06点09分 3
level 1
你应该是 没有传入到request里面去
2016年09月18日 06点09分 4
level 2
为何我都可以
2016年10月09日 10点10分 5
level 1
方法上没有标记路由?
2017年01月12日 14点01分 6
level 1
文件上传后台一般用MultipartFile参数类型来接收
2017年08月29日 06点08分 7
level 1
servlet3.0以后版本可以用request.getPart("photo"); 获取上传文件,你这应该不是
2017年12月20日 03点12分 8
1