Эх сурвалжийг харах

feat: 修复请求包405的错误

suntg 6 жил өмнө
parent
commit
cc4bf3bd2d

+ 2 - 0
src/main/java/com/uas/platform/b2b/mall2/controller/SaleApcCheckController.java

@@ -10,6 +10,7 @@ import org.springframework.ui.ModelMap;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.ResponseBody;
 
 import java.io.UnsupportedEncodingException;
 
@@ -31,6 +32,7 @@ public class SaleApcCheckController {
      * @return ModelMap 封装成功信息以及异常信息
      */
     @RequestMapping(value = "/operation/save", method = RequestMethod.POST)
+    @ResponseBody
     public ModelMap saveApCheck(@RequestBody String json) throws UnsupportedEncodingException {
         json = URLDecoderUtils.decode(json, "UTF-8");
         PurchaseApCheck apCheck = FlexJsonUtils.fromJson(json, PurchaseApCheck.class);