I ran into the same problem and solved it using the SpringApplicationBuilder class. You must set headless false (which is true by default). See javadoc .
My main method is as follows:
public static void main(String[] args) { SpringApplicationBuilder builder = new SpringApplicationBuilder(App.class); builder.headless(false).run(args); }
Efe kahraman
source share