Title / Description
Code @SpringBootApplication @Slf4j public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Component @RequiredArgsConstructor public static class ApplicationLoader implements ApplicationRunner { private final Environment environment; @Override public void run(ApplicationArguments args) throws Exception { log.info("*******************************************************************************"); log.info("*** Started at: " + "http://" + InetAddress.getLocalHost().getHostAddress() + ":" + environment.getProperty("local.server.port") + environment.getProperty("server.servlet.context-path")); log.info("*******************************************************************************"); } } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code