https://kotlinlang.org logo
Title
e

Eric

05/05/2023, 9:24 PM
what's the correct way to write a
ignoreFunction
for
SpreadOperator
here instead of using the annotation?
package com.example.demo

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableAsync

@EnableAsync
@SpringBootApplication
class DemoApplication

fun main(args: Array<String>) {
    @Suppress("SpreadOperator")
    runApplication<DemoApplication>(*args)
}
b

Brais Gabin

05/06/2023, 4:55 PM
You should target main. So
com.example.demo.main
should work.