class UserController {

    @GetMapping("add")
    public String addUser(String userName, String passWord) throws Exception {
        String sql = "INSERT INTO user (USERNAME,PASSWORD) VALUES (?,?)";
        int rows = jdbcTemplate.update(sql, userName, passWord);
        return "执行成功，影响" + rows + "行";
    }

}