Skip to content

Commit d4d692d

Browse files
committed
FEAT: component scan update
1 parent 4371272 commit d4d692d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package jshop.core;
22

33
import org.springframework.boot.autoconfigure.domain.EntityScan;
4+
import org.springframework.context.annotation.ComponentScan;
45
import org.springframework.context.annotation.Configuration;
56
import org.springframework.data.envers.repository.support.EnversRevisionRepositoryFactoryBean;
67
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
78
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
89

910
@Configuration
1011
@EnableJpaRepositories(repositoryFactoryBeanClass = EnversRevisionRepositoryFactoryBean.class)
12+
@ComponentScan(basePackages = {"jshop.infra", "jshop.common"})
1113
public class CoreConfig {
1214
}

web/src/main/java/jshop/web/InitConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
@Configuration
99
@EnableRetry
10-
@ComponentScan(basePackages = {"jshop.common", "jshop.core"})
10+
@ComponentScan(basePackages = {"jshop.core"})
1111
@EnableCaching
1212
public class InitConfig {}

0 commit comments

Comments
 (0)