接口拿值 在request里面的输入流里拿

StringBuilder content1 = new StringBuilder();
            InputStreamReader inputStreamReader = new InputStreamReader(request.getInputStream(), "utf-8");
             BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
            String str = null;
            while ((str = bufferedReader.readLine()) != null) {
                content1.append(str);
             }
            bufferedReader.close();
             inputStreamReader.close();

 

posted @ 2020-05-28 15:57  薛柏梁  阅读(194)  评论(0编辑  收藏  举报