springMvc的路径传参!
后台:
@RequestMapping(value = "uploadData/{subjectId}", method = RequestMethod.POST, produces = "application/json; charset=utf-8") @ResponseBody public String distribution(HttpServletRequest request,@PathVariable String subjectId) throws IOException {
前台路劲:路劲/+id;就可以了