uniapp
uni.request({
url: 'http://192.168.0.104:80/leeSxsDj/getSxsDj?code='+event.code,
method: 'GET', //请求方式
header: {
'Content-Type': 'application/json' // 请求头
},
success: function (res) {
that.sbList=res.data
//console.log('请求成功', that.sxsAndSbList);
},
fail: function (err) {
//console.error('请求失败', err);
},
complete: function () {
//console.log('请求完成');
}
});
springboot
@RestController
@RequestMapping("/leeSxsDj")
public class LeeSxsDjController {
@GetMapping("/getSxsDj")
public Result getSxsDj(@RequestParam String code) {
return null;
}
}