myBatis2 Mybatis 쿼리 바인딩 로그 출력 1. Interceptor.java 설정 package secretary.common.util; import java.lang.reflect.Field; import java.sql.Statement; import java.util.List; import java.util.Map; import java.util.Properties; import org.apache.ibatis.executor.statement.StatementHandler; import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.ParameterMapping; import org.apache.ibatis.plugin.Interceptor; import org.. 2020. 8. 24. MySQL 연결 1. pom.xml org.springframework spring-tx ${org.springframework-version} org.mybatis mybatis-spring ${mybatis-spring-version} org.springframework spring-jdbc ${org.springframework-version} mysql mysql-connector-java ${mysql-version} org.mybatis mybatis ${org.mybatis-version} 2. root-context.xml 3. mybatis-config.xml 4. mapping-query-*.xml SELECT NOW() 5. 서비스 생성 package secretary.common.service; i.. 2020. 3. 16. 이전 1 다음