마이바티스 설치 (1) 썸네일형 리스트형 [ MyBatis ] MyBatis Framework란? 1. MyBatis란? 1.1 등장 배경 기존의 JDBC에서는 아래 예시와 같이 수많은 Boilerplate Code와 SQL문이 프로그래밍 코드에 섞여 코드를 복잡하게 하고 사용 및 유지 보수가 어려웠습니다. public class Test { public static void main(String[] args) { Connection conn = null; try { // 0. JDBC 드라이버 로딩 Class.forName("com.mysql.cj.jdbc.Driver"); // 1. 접속 conn = DriverManager.getConnection(url, id, pw); // 2. Statemenet 객체 생성 Statement stmt = conn.createStatement(); Strin.. 이전 1 다음