Preloader image
DDD

자바

Map - iBatis & myBatis 비교

작성자 관리자 (admin)
조회수 548
입력일 2020-06-24 15:26:32

-- iBatis

<select id="board_list_ajax" parameterClass="hashmap" resultClass="hashmap">
...
</select>
 

-- myBatis

<select id="board_list_ajax" resultType="hashmap">
...
</select>

-- controller ( Map 과 VO 병행 사용 )

    @ResponseBody
    @RequestMapping(value = "/data/dash_board_list.do", method = RequestMethod.POST)
    public List<Map> dash_board_list(Model model, @RequestBody Map params) throws Exception
    {
        params.put("bbs_code", "java"); // java
        return boardService.board_list_ajax(params);
    }

^