프로젝트에서 Common Module의 일부 패키지만 Component Scan에 추가했음에도 불구하고, 추가하지 않은 Redis 설정이 작동하는 이슈가 발생
project(':product-server') {
dependencies {
implementation project(':common')
}
}
@SpringBootApplication(
scanBasePackages = {
"com.j1p3ter.productserver",
"com.j1p3ter.common.auditing",
"com.j1p3ter.common.response",
"com.j1p3ter.common.exception",
"com.j1p3ter.common.config.global"
},
exclude = {
RedisAutoConfiguration.class
}
)
public class ProductServerApplication {
public static void main(String[] args) {
SpringApplication.run(ProductServerApplication.class, args);
}
}