CSS

Java code posted
created at 08 Apr 22:13, updated at 08 Apr 22:14

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@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("*******************************************************************************");
        }
    }

}
964 Bytes in 3 ms with coderay