/** * Flag to indicate that command line arguments should be added to the environment. * @param addCommandLineProperties the flag to set. Default true. * @return the current builder */ public SpringApplicationBuilder addCommandLineProperties( boolean addCommandLineProperties) { this.application.setAddCommandLineProperties(addCommandLineProperties); return this; }
public static void main(String[] args) { SpringApplication app = new SpringApplication(Application.class); app.setAddCommandLineProperties(false); app.run(args); } }