{ "properties" : { }, "id" : "72d080dc9ed540eebe17a11e4077d775", "script" : null, "groupId" : "7eeba36706c24c1484ee4e84ad829f9b", "name" : "上传图片", "createTime" : null, "updateTime" : 1635926424491, "lock" : "0", "method" : "POST", "path" : "/uploadImage", "parameters" : [ ], "option" : "[]", "requestBody" : "{}", "headers" : [ ], "paths" : [ ], "responseBody" : "{\n \"code\": 500,\n \"message\": \"系统内部出现错误\",\n \"data\": null,\n \"timestamp\": 1635926293609,\n \"executeTime\": 33\n}", "description" : null, "requestBodyDefinition" : null, "responseBodyDefinition" : { "name" : "", "value" : "", "description" : "", "required" : false, "dataType" : "Object", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ { "name" : "code", "value" : "500", "description" : "", "required" : false, "dataType" : "Integer", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "message", "value" : "系统内部出现错误", "description" : "", "required" : false, "dataType" : "String", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "data", "value" : "null", "description" : "", "required" : false, "dataType" : "Object", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "timestamp", "value" : "1635926293609", "description" : "", "required" : false, "dataType" : "Long", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "executeTime", "value" : "33", "description" : "", "required" : false, "dataType" : "Integer", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] } ] }, "optionMap" : { } } ================================ import 'org.ssssssss.magicboot.utils.FileUtils' import request; import response; return response.json(FileUtils.saveFile(request.getFile("file")));