mybatis
-
MyBatis 속성Spring/Spring 기본 지식 2020. 5. 6. 08:34
이전글 보기 2020/03/23 - [Spring/Spring 기본 지식] - Spring mybatis jdbc 기본 연결테스트 2020/03/23 - [Spring/Spring 기본 지식] - JDBC 사용 - 커넥션 풀 select 속성 속성 설명 id 구문을 찾기 위해 사용될 수 있는 네이스페이스내 유일한 구분자 parameterType 구문에 전달될 파라미터의 패키지 경로를 포함한 전체 클래스명이나 별칭 flushCache 이 값을 true 로 셋팅하면 구문이 호출될때마다 캐시가 지원 된다.(flush). 디폴트는 false 이다. timeout 예외가 던져지기 전에 데이터베이스의 요청 결과를 기다리는 최대시간을 설정한다. 디폴트는 셋팅하지 않는 것이고 드라이버에 따라 다소 지원되지 않을 수 있..
-
Spring postgresql mybatis jdbc 기본 연결테스트Spring/Spring 기본 지식 2020. 3. 23. 10:51
기본 구조 Junit5 사용하여 연결 테스트 @ContextConfiguration(locations={"file:src/main/webapp/WEB-INF/spring/PostgreSQL-context.xml"}) public class PostgreSQLConnectionTest { @Autowired private DataSource ds; @Test public void testConnection() throws Exception { try (Connection con = ds.getConnection()) { System.out.println("\nDBConnection 있냐? : " + con + "\n"); } catch (Exception e) { e.printStackTrace(); } ..