JPAリポジトリスキャンを開く-@EnableJpaRepositories詳細
974 ワード
JPAリポジトリスキャンを開く
1.JPA構成クラスの作成
1.JPA構成クラスの作成
/**
* @author Created by on 2018/4/4 0004. Wednesday. 9:55.
* © All Rights Reserved.
*/
@EnableJpaRepositories(
// basePackages ,
// {"com.simply.zuozuo.repo","com.simply.zuozuo.mapper"}
basePackages = {
"com.simply.zuozuo.repo"
},
value = {},
//
basePackageClasses = {},
//
includeFilters = {
@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Repository.