// @Test public void testUpdateDCode() throws Exception { Diary diary = new Diary(); diary.setdNo(100002); diary.setdCode("open"); diaryService.updateDCode(diary); System.out.println("updateDCode : " + diaryService.getDiary(100002)); }