I created a new spring boot with kotlin project wi...
# spring
s
I created a new spring boot with kotlin project with the following application class
Copy code
@SpringBootApplication
class WebApplication

fun main(args: Array<String>) {
    SpringApplication.run(WebApplication::class.java, *args)
}
and run into the following error:
Copy code
Error: Main method not found in class com.example.web.WebApplication, please define the main method as:
   public static void main(String[] args)
any insight. I have tried the older method and it works.