08 2021 档案
摘要:区别: 1、在请求上的区别:@RequestBody用于Post请求 @RequestParam用于Get请求 2、在后端的同一个接收方法里,@RequestBody与@RequestParam()可以同时使用,@RequestBody最多只能有一个,而@RequestParam()可以有多个。 作
阅读全文
摘要:用到 import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONObject; 这两个依赖 对象转为String String string = JSON.toJSONString(quickSearchDTO.getMain(
阅读全文