728x90
반응형
jpaRepository package 경로 스캔설정 파일입니다.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:repository="http://www.springframework.org/schema/data/repository"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.8.xsd
http://www.springframework.org/schema/data/repository http://www.springframework.org/schema/data/repository/spring-repository-1.11.xsd">
<!-- JpaRepository db가 다른경우 package경로를 다르게 해서 스캔해야 이상없이 db별로 jpa가 적용된다 -->
<!--
<jpa:repositories base-package="egovframework.invako.postgre.domain" entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager">
-->
<jpa:repositories base-package="egovframework.invako.domain" entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager">
<!-- 제외할 클래스 지정 -->
<!--
<repository:exclude-filter type="assignable" expression="egovframework.grain.com.sym.sec.repository.ComtnAuthorInfoRepository" />
-->
</jpa:repositories>
<!--
<jpa:repositories base-package="egovframework.invako.tibero.domain" entity-manager-factory-ref="entityManagerFactory2" transaction-manager-ref="transactionManager2">
-->
<!-- 포함할 클래스 지정 -->
<!--
<repository:include-filter type="assignable" expression="egovframework.grain.com.sym.sec.repository.ComtnAuthorInfoRepository" />
-->
<!--
</jpa:repositories>
-->
</beans>
728x90
반응형
'프로그램 > JPA' 카테고리의 다른 글
context-nexacro.xml (0) | 2021.07.02 |
---|---|
context-mapper.xml (0) | 2021.07.02 |
context-hibernate.xml (0) | 2021.07.02 |
context-datasource.xml 설정 파일 (0) | 2021.07.02 |
전자정부 소스 자동 생성 툴 (0) | 2021.06.30 |
댓글