I’m trying to create simple spring boot demo app w...
# server
j
I’m trying to create simple spring boot demo app with Kotlin and Spring cannot find my repository. App configuration
Copy code
@SpringBootApplication
@EnableJpaRepositories
@ComponentScan("customer")
open class Application {
}

fun main(args: Array<String>) {
    SpringApplication.run(Application::class.java, *args)
}
Repository
Copy code
interface CustomerRepository : JpaRepository<Customer, Long> {
}
Service
Copy code
@Service
open class CustomerService(val repository: CustomerRepository) {
}
What am I missing here? 🙂