[Spring] Mybatis 연동 (2) interface 생성 후 JUnit으로 테스트 1. 패키지 생성 후 interface Mapper 생성 2. TestMapper.java 에 코드 작성 3. JUnit 으로 테스트(src/test/java 밑에) ERROR: org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@42dafa95] to prepare test instance [com.sora.shop.db.Int..
[Spring] Mybatis 연동 (1) root-context.xml 파일에SqlSessionFactory와 SqlSession 설정을 추가해야한다. mybatis에서 SqlSession을 생성하기 위해 SqlSessionFactory를 사용한다. (참고 - http://www.mybatis.org/spring/ko/getting-started.html) mybatis와 spring 연동을 위해 pom.xml에mybatis, mybatis-spring 2개의 라이브러리를 추가한다. 마이바티스는 개발자가 지정한 SQL, 저장프로시저 그리고 몇가지 고급 매핑을 지원하는 퍼시스턴스 프레임워크이다. 마이바티스는 JDBC로 처리하는 상당부분의 코드와 파라미터 설정및 결과 매핑을 대신해준다. 마이바티스는 데이터..
- Total
- Today
- Yesterday
- install
- clss
- Connection-Pool
- mybatis-spring
- mysql
- Window10
- jUnit
- mybatis
- cordova
- vscode
- 디스크 없음
- 설치
- sqldeveloper
- import
- php
- 디렉터리
- Resources
- pom.xml
- Semantic
- Oracle
- create-react-app
- react
- instant
- dataSource
- postman
- spring
- servlet-context.xml
- root-context.xml
- web.xml이란?
- Get
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |