##### Coverage Report - com.ctrip.apollo.configservice.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.configservice;
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.server.EnableEurekaServer;
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 |  |
     /**
16 |  |
      * Spring boot application entry point
17 |  |
      *
18 |  |
      * @author Jason Song(song_s@ctrip.com)
19 |  |
      */
20 |  |
21 |  |
     @EnableEurekaServer
22 |  |
     @EnableAspectJAutoProxy
23 |  |
     @EnableAutoConfiguration // (exclude = EurekaClientConfigBean.class)
24 |  |
     @Configuration
25 |  |
     @EnableTransactionManagement
26 |  |
     @PropertySource(value = {"classpath:configservice.properties"})
27 |  |
     @ComponentScan(basePackageClasses = {com.ctrip.apollo.common.ApolloCommonConfig.class,
28 |  |
         com.ctrip.apollo.biz.ApolloBizConfig.class,
29 |  |
         com.ctrip.apollo.configservice.ConfigServiceApplication.class,
30 |  |
         com.ctrip.apollo.metaservice.ApolloMetaServiceConfig.class})
31 | 0 |
     public class ConfigServiceApplication {
32 |  |
33 |  |
       public static void main(String[] args) throws Exception {
34 | 0 |
         ConfigurableApplicationContext context =
35 | 0 |
             new SpringApplicationBuilder(ConfigServiceApplication.class).run(args);
36 | 0 |
         context.addApplicationListener(new ApplicationPidFileWriter());
37 | 0 |
         context.addApplicationListener(new EmbeddedServerPortFileWriter());
38 | 0 |
       }
39 |  |
40 |  |
     }