##### Coverage Report - com.ctrip.apollo.ConfigServiceApplication

Classes in this File | Line Coverage | Branch Coverage | Complexity
ConfigServiceApplication |
0% | 0/6
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo;
2 |  |
3 |  |
     import org.springframework.boot.actuate.system.ApplicationPidFileWriter;
4 |  |
     import org.springframework.boot.actuate.system.EmbeddedServerPortFileWriter;
5 |  |
     import org.springframework.boot.autoconfigure.SpringBootApplication;
6 |  |
     import org.springframework.boot.builder.SpringApplicationBuilder;
7 |  |
     import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
8 |  |
     import org.springframework.context.ConfigurableApplicationContext;
9 |  |
     import org.springframework.context.annotation.EnableAspectJAutoProxy;
10 |  |
11 |  |
     /**
12 |  |
      * Spring boot application entry point
13 |  |
      *
14 |  |
      * @author Jason Song(song_s@ctrip.com)
15 |  |
      */
16 |  |
     @SpringBootApplication
17 |  |
     @EnableEurekaServer
18 |  |
     @EnableAspectJAutoProxy
19 | 0 |
     public class ConfigServiceApplication {
20 |  |
21 |  |
       public static void main(String[] args) throws Exception {
22 | 0 |
         ConfigurableApplicationContext context =
23 | 0 |
             new SpringApplicationBuilder(ConfigServiceApplication.class).run(args);
24 | 0 |
         context.addApplicationListener(new ApplicationPidFileWriter());
25 | 0 |
         context.addApplicationListener(new EmbeddedServerPortFileWriter());
26 | 0 |
       }
27 |  |
28 |  |
     }