SpringBoot & Kotlin jar ClassNotFoundException

Refresh

6 days ago

Views

4 time

0

I have an springboot application with kotlin when I try to run jar file it throws "main" ClassNotFoundException

I also add start class in properties

<start-class>xxx.yyy.ServiceApplication</start-class>

And also in plugins

     <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <mainClass>xxx.yyy.ServiceApplication</mainClass>
            </configuration>
        </plugin>

What am I doing wrong?

0 answers