I'm creating a Kotlin project with Spring boot and Gradle project fromstart.spring.io
When importing this project to IntelliJ and run the project(Alt+Shift+F10) then show this error
Error: Could not find or load main class com.example.demo.DemoApplicationKt mainclass :
package com.example.demo import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication @SpringBootApplication class DemoApplication fun main(args: Array<String>) { SpringApplication.run(DemoApplication::class.java, *args) } How can I solve this problem?
