Currently I try to rewrite my Java Spring Boot Application with Kotlin. I encountered a problem that in all of my classes which are annotated with @Service
the depe
Which Spring Boot version do you use? Since 1.4 Spring Boot is based on Spring Framework 4.3 and since then you should be able to use constructor injection without any @Autowired
annotation at all. Have you tried that?
It would look like this and works for me:
@Service
class UserServiceController(val dsl: DSLContext, val teamService: TeamService) {
// your class members
}