<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 一、POSTMAN測試接口 ![](https://img.kancloud.cn/98/62/98625d286bb65ba257b43130792055c6_966x357.png) 在類的前面加RequestMapping相當于在整體類前加了一個路徑標識 ### 1.1測試GET傳參 在postman中輸入 http://127.0.0.1:8888/rest/articles/1 可以獲得參數內容,如圖 ![](https://img.kancloud.cn/26/ed/26edb21b5fbae61e0bda2fa05911dc61_1457x715.png) ### 1.2測試POST傳參 postman中選擇body寫json傳入內容 ![](https://img.kancloud.cn/03/b7/03b7af030bb344680450305fee749af6_1422x754.png) ``` { "id": 3, "author": "zimug", "title": "手摸手教你開發spring boot3", "content": "c", "createTime": "2019-10-20 12:12:12" } ``` ### 1.3 Header傳參 ![](https://img.kancloud.cn/19/ef/19ef30e510234eff796f07b0d152ab2b_887x259.png) ![](https://img.kancloud.cn/12/97/1297621f27f7c235bcbb73adf26fa4bc_1480x760.png) ## 二、HTTP協議的四種傳參方式 | HTTP協議組成 | 協議內容示例 | 對應Spring注解 | | --- | --- | --- | | path info傳參 | /articles/12 (查詢id為12的文章,12是參數) | @PathVariable | | URL Query String傳參 | /articles?id=12 | @RequestParam | | Body 傳參 | Content-Type: multipart/form-data | @RequestParam | | Body 傳參 | Content-Type: application/json,或其他自定義格式 | @RequestBody | | Headers 傳參 | | @RequestHeader | 附: 這里date類型數據需要在application.yml 配置文件中加 ~~~ spring: jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 ~~~
                  <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>

                              哎呀哎呀视频在线观看