You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
VIPS/src/main/java/go/kr/project/config/ProjectMapperConfig.java

27 lines
883 B
Java

package go.kr.project.config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
/**
* 프로젝트 공통 MyBatis Mapper 스캔 설정
*
* <p>일반 프로젝트 모듈의 Mapper 인터페이스를 스캔합니다.</p>
*
* <ul>
* <li>DataSource: egovframework 기본 설정 사용 (DataSourceProxyConfig)</li>
* <li>TransactionManager: egovframework 기본 설정 사용 (EgovConfigTransaction.txManager)</li>
* <li>SqlSessionFactory: MyBatis Spring Boot Starter가 자동 생성</li>
* <li>MapperScan: 일반 프로젝트 및 egovframework의 Mapper 스캔</li>
* </ul>
*
* <p>API 전용 Mapper는 ApiMapperConfig에서 별도로 스캔됩니다.</p>
*/
@Configuration
@MapperScan(basePackages = {
"go.kr.project.**.mapper",
"egovframework.**.mapper"
})
public class ProjectMapperConfig {
}