方法一:
@RequestMapping(value = "getSjyzm.interface", method = RequestMethod.POST)
@ResponseBody
public Object getSjyzm(HttpServletRequest request, Yzm yzm) {
uni.request({
url: url,
data: formdata,
method: "POST",
dataType: 'json',
header: {
'Content-type':'application/x-www-form-urlencoded'
//"content-type":"application/json"
// "Access-Control-Allow-Origin": '*'
},
success: (e) => {
方法二:
@RequestMapping(value = "getSjyzm.interface", method = RequestMethod.POST)
@ResponseBody
public Object getSjyzm(HttpServletRequest request, @RequestBody Yzm yzm) {
uni.request({
url: url,
data: formdata,
method: "POST",
dataType: 'json',
header: {
//'Content-type':'application/x-www-form-urlencoded'
"content-type":"application/json"
// "Access-Control-Allow-Origin": '*'
},
success: (e) => {