to copy the configuration of your main xxxx SpringBootApplication class and extend it with the configuration class yyyy.class
Specifying xxxx::main in Kotlin don't want to resolve in Intellij, but for Java it works. The argument for the
.from
method is of type
ThrowingConsumer
which neither the Java main or the Kotlin main functions match, yet it works for Java, but not Kotlin.
I guess the broader question is, can you get a function reference to
public static SpringApplication.Augmented from(ThrowingConsumer<String[]> main) {
Assert.notNull(main, "Main must not be null");
return new Augmented(main, Collections.emptySet());
}
alwyn
06/19/2023, 8:53 PM
that's the implementation of the method I'm trying to call.