<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                當你從前端點擊獲取驗證碼等功能的時候就會報錯,因為從前端發送請求的時候都是發送的json數據,但是后端接口都是只接收表單數據,所以會報錯 ### ![](https://img.kancloud.cn/67/c8/67c83afd952c116aec65483841822da1_1492x654.png) 前臺傳遞的都是json數據 ### ![](https://img.kancloud.cn/9d/68/9d6811ce4a3c4325f7d980fde7f424a7_2388x1088.png) ### 并且我們之前寫的httpclient都是傳遞的表單數據來做測試 ### ![](https://img.kancloud.cn/5c/dc/5cdc8c49665455951574752758d320c5_3214x1800.png) ### 所以為了能讓前端傳遞json數據 我們需要將控制器當中都加上@RequestBody注解![](https://img.kancloud.cn/a3/b8/a3b8ca10234d815cc768f5eb2e87ede6_3062x1642.png) 測試的httpclient也都改成用json傳參 ![](https://img.kancloud.cn/a4/08/a40889a3be4947d7e6a447b5bd94814e_2962x1782.png) ### 這樣就可以解決前端無法請求后臺接口的問題了同時解決httpclient傳遞json數據進行post請求的問題
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看