##### Coverage Report - com.ctrip.framework.apollo.adminservice.AdminServiceApplication

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

1 |  |
     package com.ctrip.framework.apollo.adminservice;
2 |  |
3 |  |
     import com.ctrip.framework.apollo.biz.ApolloBizConfig;
4 |  |
     import com.ctrip.framework.apollo.common.ApolloCommonConfig;
5 |  |
6 |  |
     import org.springframework.boot.actuate.system.ApplicationPidFileWriter;
7 |  |
     import org.springframework.boot.actuate.system.EmbeddedServerPortFileWriter;
8 |  |
     import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
9 |  |
     import org.springframework.boot.builder.SpringApplicationBuilder;
10 |  |
     import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
11 |  |
     import org.springframework.context.ConfigurableApplicationContext;
12 |  |
     import org.springframework.context.annotation.ComponentScan;
13 |  |
     import org.springframework.context.annotation.Configuration;
14 |  |
     import org.springframework.context.annotation.EnableAspectJAutoProxy;
15 |  |
     import org.springframework.context.annotation.PropertySource;
16 |  |
     import org.springframework.transaction.annotation.EnableTransactionManagement;
17 |  |
     @EnableAspectJAutoProxy
18 |  |
     @EnableEurekaClient
19 |  |
     @Configuration
20 |  |
     @PropertySource(value = {"classpath:adminservice.properties"})
21 |  |
     @EnableAutoConfiguration
22 |  |
     @EnableTransactionManagement
23 |  |
     @ComponentScan(basePackageClasses = {ApolloCommonConfig.class,
24 |  |
         ApolloBizConfig.class,
25 |  |
         AdminServiceApplication.class})
26 | 0 |
     public class AdminServiceApplication {
27 |  |
       public static void main(String[] args) {
28 | 0 |
         ConfigurableApplicationContext context =
29 | 0 |
             new SpringApplicationBuilder(AdminServiceApplication.class).run(args);
30 | 0 |
         context.addApplicationListener(new ApplicationPidFileWriter());
31 | 0 |
         context.addApplicationListener(new EmbeddedServerPortFileWriter());
32 | 0 |
       }
33 |  |
     }