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

                # 初始化 TeacherController ``` @DeleteMapping("{id}") ? @CrossOrigin("*") public void delete(@PathVariable Long id) { } ``` * ? 映射`delete`方法。 # SQL刪除 TeacherController ``` @DeleteMapping("{id}") @CrossOrigin("*") public void delete(@PathVariable Long id) { String sql = String.format( "delete from `teacher` where id = %s", id); ? this.jdbcTemplate.update(sql); } ``` * ? 格式化刪除語句 # 測試 新建`HTTP Request` ``` DELETE http://localhost:8080/Teacher/1 ``` 運行測試: ``` DELETE http://localhost:8080/Teacher/1 HTTP/1.1 200 Content-Length: 0 Date: Mon, 28 Oct 2019 03:12:40 GMT <Response body is empty> Response code: 200; Time: 593ms; Content length: 0 bytes ``` 打開數據表,查看ID為1的記錄是否已刪除 ![](https://img.kancloud.cn/e8/32/e83201878bd265fcf95b8a22372637ee_553x156.png) # 集成測試 ![](https://img.kancloud.cn/7c/ac/7cacd94201be6c0ce4602325fe8df173_707x369.gif) # 參考文檔 | 名稱 | 鏈接 | 預計學習時長(分) | | --- | --- | --- | [https://www.runoob.com/mysql/mysql-delete-query.html](https://www.runoob.com/mysql/mysql-delete-query.html)
                  <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>

                              哎呀哎呀视频在线观看