0421 MyBatis / MyBatis-Spring
- MyBatis를 이용하면 DaoImpl에서 하나씩 직접 작성하던 쿼리문을 간단하게 처리할 수 있음. 1. pom.xml에 mybatis dependency 추가하기 2. scr/main/resources/에 mybatis-config.xml 생성 - envirionments(DB 정보) 와 mappers 는 필수 3. 해당 mapper 작성 ex) member.xml insert into ssafy_member (userId, userName, userPwd, email, joinDate) values(#{userId}, #{userName}, #{userPwd}, #{email}, now()) select username, userid, email from ssafy_member where us..