##### Coverage Report - com.ctrip.framework.apollo.portal.PortalApplication

Classes in this File | Line Coverage | Branch Coverage | Complexity
PortalApplication |
20% | 1/5
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.portal;
2 |  |
3 |  |
     import com.ctrip.framework.apollo.common.ApolloCommonConfig;
4 |  |
5 |  |
     import org.springframework.boot.SpringApplication;
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.context.ConfigurableApplicationContext;
10 |  |
     import org.springframework.context.annotation.ComponentScan;
11 |  |
     import org.springframework.context.annotation.Configuration;
12 |  |
     import org.springframework.context.annotation.EnableAspectJAutoProxy;
13 |  |
     import org.springframework.context.annotation.PropertySource;
14 |  |
     import org.springframework.transaction.annotation.EnableTransactionManagement;
15 |  |
16 |  |
     @EnableAspectJAutoProxy
17 |  |
     @Configuration
18 |  |
     @EnableAutoConfiguration
19 |  |
     @EnableTransactionManagement
20 |  |
     @PropertySource(value = {"classpath:portal.properties"})
21 |  |
     @ComponentScan(basePackageClasses = {ApolloCommonConfig.class,
22 |  |
         PortalApplication.class})
23 | 1 |
     public class PortalApplication {
24 |  |
25 |  |
       public static void main(String[] args) throws Exception {
26 | 0 |
         ConfigurableApplicationContext context = SpringApplication.run(PortalApplication.class, args);
27 | 0 |
         context.addApplicationListener(new ApplicationPidFileWriter());
28 | 0 |
         context.addApplicationListener(new EmbeddedServerPortFileWriter());
29 | 0 |
       }
30 |  |
     }