jhomlala / catcher

Flutter error catching & handling plugin. Handles and reports exceptions in your app!
Apache License 2.0
784 stars 175 forks source link

how get the formdata in springboot #240

Open AKA-LinCoder opened 1 year ago

AKA-LinCoder commented 1 year ago
final FormData formData = FormData.fromMap(<String, dynamic>{
          "payload_json": json,
          "file": await MultipartFile.fromFile(screenshotPath)
        });

hello ,i have some question about it,how can i get the formData in springboot,i am a new in java , i can only change the json to string by decode, and i get data in springboot like it

 public  ResponseResult getAppLog1(@RequestParam(value = "payload_json",required = false) String payload_json,@RequestParam("file") MultipartFile file) throws JsonProcessingException {

so,how can i get the formdata without changing your code,hope you can see it