Spring4.2.2 @Pathvariable with dot(。)我想返回Json但返回f.txt

时间:2015-12-15 01:33:05

标签: java json spring

@RequestMapping(value = "/v1/locate/latlng/{lat:.+},{lng:.+}", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")     
public ApiResultModel<LocateModel> getLocate(@PathVariable("lat") Double lat, @PathVariable("lng") Double lng)      

Content-Disposition:attachment; filename = f.txt

1 个答案:

答案 0 :(得分:0)

升级是Spring Framework 4.2.3的解决方案