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