List of usage examples for org.springframework.boot SpringApplication setBannerMode
public void setBannerMode(Banner.Mode bannerMode)
From source file:com.webproject.checkpoint.AccessPoint.java
public static void main(String[] args) { SpringApplication application = new SpringApplication(AccessPoint.class); application.setBannerMode(Banner.Mode.OFF); application.setLogStartupInfo(false); application.run(args);/*from w w w .j a v a 2s .c o m*/ }
From source file:fi.helsinki.opintoni.TestApplication.java
public static void main(String[] args) throws UnknownHostException { SpringApplication app = new SpringApplication(TestApplication.class); app.setBannerMode(Banner.Mode.LOG); app.run(args).getEnvironment();//ww w . ja v a 2 s. c o m }
From source file:com.sdl.odata.jpa.ServiceContainer.java
public static void main(String[] args) { LOG.info("Starting JPA Service Application container"); SpringApplication springApplication = new SpringApplication(ServiceContainer.class); springApplication.setBannerMode(Banner.Mode.OFF); springApplication.run(args);//from w w w .ja v a 2s . c o m LOG.info("JPA Service application container started"); }
From source file:ch.vorburger.mariadb4j.springframework.boot.MariaDB4jApplication.java
public static void main(String[] args) throws Exception { SpringApplication app = new SpringApplication(MariaDB4jApplication.class); app.setBannerMode(Mode.OFF); ConfigurableApplicationContext ctx = app.run(args); MariaDB4jService.waitForKeyPressToCleanlyExit(); ctx.stop();//from w w w .j a va 2s . c o m ctx.close(); }
From source file:com.sdl.odata.container.ODataServiceContainer.java
public static void main(String[] args) { LOG.info("Starting Spring Application container"); SpringApplication springApplication = new SpringApplication(ODataServiceContainer.class); springApplication.setBannerMode(OFF); springApplication.run(args);// w w w . ja v a2s .com LOG.info("Spring application container started"); }
From source file:fi.helsinki.opintoni.Application.java
/** * Main method, used to run the application. *//*from w ww . j ava2 s. co m*/ public static void main(String[] args) throws UnknownHostException { SpringApplication app = new SpringApplication(Application.class); app.setBannerMode(Banner.Mode.OFF); SimpleCommandLinePropertySource source = new SimpleCommandLinePropertySource(args); // Check if the selected profile has been set as argument. // if not the development profile will be added addDefaultProfile(app, source); addLiquibaseScanPackages(); Environment env = app.run(args).getEnvironment(); log.info( "Access URLs:\n----------------------------------------------------------\n\t" + "Local: \t\thttp://127.0.0.1:{}\n\t" + "External: \thttp://{}:{}\n----------------------------------------------------------", env.getProperty("server.port"), InetAddress.getLocalHost().getHostAddress(), env.getProperty("server.port")); }
From source file:com.ericsson.eiffel.remrem.publish.cli.CLI.java
public static void main(String args[]) { SpringApplication application = new SpringApplication(CLI.class); application.addInitializers(new SpringLoggingInitializer()); application.setBannerMode(Banner.Mode.OFF); application.setLogStartupInfo(false); application.setWebEnvironment(false); CliOptions.parse(args);/*from ww w . j av a2 s . c o m*/ application.run(args); }
From source file:com.ericsson.eiffel.remrem.generate.cli.CLI.java
public static void main(String[] args) throws Exception { SpringApplication application = new SpringApplication(CLI.class); application.addInitializers(new SpringLoggingInitializer()); application.setBannerMode(Banner.Mode.OFF); application.setLogStartupInfo(false); application.setWebEnvironment(false); CLIOptions.parse(args);//ww w.j a v a 2 s .c o m application.run(args); }
From source file:com.sdl.odata.container.ODataWinServiceContainer.java
/** * Starting the service container./*from w w w. j a va 2 s . c om*/ * * @param args startCommand */ public static void start(String[] args) { LOG.info("Starting Spring Application container"); SpringApplication springApplication = new SpringApplication(ODataServiceContainer.class); springApplication.setBannerMode(OFF); springApplication.run(args); LOG.info("Spring application container started"); }
From source file:io.github.gsteckman.doorcontroller.DoorApp.java
/** * Application entry point.//from www . j ava2s .c om * * @param args * Command line arguments. */ public static void main(String[] args) { GpioUtil.enableNonPrivilegedAccess(); SpringApplication app = new SpringApplication(DoorApp.class); app.setBannerMode(Banner.Mode.OFF); app.run(args); }