class UserController {

    @GetMapping("deleteUserById")
    public String deleteUserById(int id) throws Exception {
        String sql = "DELETE FROM  user  WHERE ID = ?";
        int rows = jdbcTemplate.update(sql, id);
        return "执行成功，影响" + rows + "行";
    }

}