import org.apache.commons.io.IOUtils;
import javax.servlet.ServletInputStream;

@RequestMapping(
"/sendMsg.mob") @ResponseBody public String sendMsg(HttpServletRequest request) { ServletInputStream inputStream = null; String param = ""; try { // 获取请求输入流 inputStream = request.getInputStream(); //将请求信息转换为字符串 param = IOUtils.toString(inputStream, "UTF-8"); } catch (IOException e2) { e2.printStackTrace(); }
   return ""; }

 

相关文章:

  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
猜你喜欢
  • 2021-08-31
  • 2021-12-25
  • 2022-01-30
  • 2021-10-26
  • 2021-10-11
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案