https://kotlinlang.org logo
#spring
Title
n

nikos

11/19/2017, 7:05 PM
@gert.claeskens please be aware that your application entry point is the start point for the component scan (implictly implied by
@SpringBootApplication
), so that you either have to add the package of your
FooRepository
to the component scan packages, or put FooRepository in the same package or sub-package where
ReactiveKotlinApplication
lives, see https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-structuring-your-code.html for details
👍 2
g

gert.claeskens

11/19/2017, 7:38 PM
Seems only to work in a subpackage. My
ReactiveKotlinApplication
is in
com.example.infrastructure
Repositories are in
com.example.domain
with
@ComponentScan
pointing at
com.example
, IntelliJ picks up the repositories in the Spring Context.
2 Views