我正在使用Moya来处理我的swift应用程序和api之间的通信,我能够发布和获取数据但无法将文件发布到api服务器,以下是我的代码enumTestApi{...casePostTest(obj:[String:AnyObject])...}extensionTestApi:TargetType{varbaseURL:NSURL{switchself{case.PostTest:returnNSURL(string:"http://192.168.9.121:3000")!}}varpath:String{switchself{case.PostTest:return"/api/fil
一.问题描述 我们知道一般post请求的请求参数是不会跟在url后面的,get请求才会跟在后面,所以大家才说post请求比get请求安全嘛。但是今天写代码的时候,明明我发送的是post请求,参数还是跟在了url后面。二.问题复现packagecom.itheima.boot.Controller;importorg.springframework.web.bind.annotation.*;@RestControllerpublicclassPostTestController{@PostMapping("/postTest")publicStringpostTest(String
一.问题描述 我们知道一般post请求的请求参数是不会跟在url后面的,get请求才会跟在后面,所以大家才说post请求比get请求安全嘛。但是今天写代码的时候,明明我发送的是post请求,参数还是跟在了url后面。二.问题复现packagecom.itheima.boot.Controller;importorg.springframework.web.bind.annotation.*;@RestControllerpublicclassPostTestController{@PostMapping("/postTest")publicStringpostTest(String