^-- had to both unroll the method, and add JVMStat...
# spring
j
^-- had to both unroll the method, and add JVMStatic
n
I reproduced your problem
@JVMStatic
is not required the problem comes from using an expression body (
=
instead of
{}
) now the question is, why???
l
Maybe it's the
SpringApplication.run()
return type. Main expects a
Unit
.
👍 1
n
it’s not maybe it’s exactly that 🙂
j
I was sure that both removing the expression body and adding
@JVMStatic
were required.
Tested without.
n
no this is just because by using an expression body, you changed the signature of the main method