목록iBatis (1)
이야기박스

# 개요 Spring Core로 동작하는 webapp 프로젝트를 최근에 진행하게 되었습니다. DB와 커넥션은 SpringJdbc + ibatis를 이용하게 되었고, 여러 TABLE에 데이터를 한 배치에 INSERT 해야 하는 기능이 필요하였습니다. 마침 이전 Spring Study에서 @Transactional을 사용했던 기억이 나, 시도를 했었는데 기대했던 대로 동작하지 않았었습니다. @Transactional(value = "myTransaction") private boolean transactionInsert(Object vo1, Object vo2) { try { mapper.insertFirst(vo1); mapper.insertSecond(vo2); } catch (Exception e) {..
Programming Language/Spring
2019. 10. 18. 16:53