Hi All, I am are currently rewriting a legacy syst...
# spring
l
Hi All, I am are currently rewriting a legacy system with Kotlin, Spring boot and JPA and so I have three modules of which two are services and a shared module which includes entities, Utils and repositories etc. Now on the dependent projects main I have used annotations @ComponentScan(value = ["com.bla.mypackage"]) and @EnableJpaRepositories and I can run the services and beans are autowired but when I run tests I get Unsatisfied dependency exception and my testBase is annotated with Test and @ContextConfiguration(classes = [MyService::class]). What could I be missing or doing wrong?
j
this looks more appropiated for stack overflow. Also you may try to share stack trace there.