diff --git a/Api/src/main/java/picasso/server/api/Application.java b/Api/src/main/java/picasso/server/api/Application.java index f91b7648..f6ae922e 100644 --- a/Api/src/main/java/picasso/server/api/Application.java +++ b/Api/src/main/java/picasso/server/api/Application.java @@ -6,10 +6,12 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.context.annotation.ComponentScan; - +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; +// EnableJpaRepositories Reference : https://stackoverflow.com/questions/46732402/spring-boot-autowiring-of-beans-is-not-working-in-maven-multi-module-project @Slf4j @EntityScan("picasso.server.domain") -@ComponentScan("picasso.server.domain") +@ComponentScan(basePackages = {"picasso.server"}) +@EnableJpaRepositories(basePackages = {"picasso.server.domain"}) @SpringBootApplication @RequiredArgsConstructor public class Application {