Hello, I'm attempting to change Java 8 code to Kotlin, which includes changing field-based injection to constructor-based injection, but Spring is throwing me errors about missing default constructors. This isn't exactly a problem Kotlin specifically because it also fails when trying in Java, but maybe there's a trick to it that someone here knows. (Spring 4.2.6, Spring Boot 1.3.5)
n
nayanjyoti
07/17/2017, 6:17 PM
@minus : are the constructor based injections annotated with
@Autowired
m
minus
07/17/2017, 6:17 PM
in kotlin yes, in java it complained that @Autowired wasn't allowed with parameters