I\'m writing an SSM project in Kotlin and this happens as long as I try to annotate a class (a service implementation) with @Service
.
Kotlin's reflection facilities needed by Spring are shipped in a separate JAR. Try adding it into your build:
build.gradle
:
compile 'org.jetbrains.kotlin:kotlin-reflect:1.1.51'
pom.xml
:
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>1.1.51</version>
</dependency>