class UserController {

    @GetMapping("getMapById")
    public Map getMapById(Integer id) throws Exception {
        String sql = "SELECT * FROM user WHERE ID = ?";
        Map map = jdbcTemplate.queryForMap(sql, id);
        return map;
    }

}