1
 2/**
 3
 4* SprintBootApplication
 5  */
 6  @Slf4j
 7  @SpringBootApplication
 8  @EnableCaching
 9  public class BootApplication {
10  
11  public static void main(String[] args) {
12  ApplicationContext context = SpringApplication.run(BootApplication.class, args);
13  String serverPort = context.getEnvironment().getProperty("server.port");
14  log.info("mblog started at http://localhost:" + serverPort);
15  }
16
17}
18
1
2
3
4
5