##### Coverage Report - com.ctrip.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.apollo.portal;
2 |  |
3 |  |
     import org.springframework.boot.SpringApplication;
4 |  |
     import org.springframework.boot.actuate.system.ApplicationPidFileWriter;
5 |  |
     import org.springframework.boot.actuate.system.EmbeddedServerPortFileWriter;
6 |  |
     import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
7 |  |
     import org.springframework.context.ConfigurableApplicationContext;
8 |  |
     import org.springframework.context.annotation.ComponentScan;
9 |  |
     import org.springframework.context.annotation.Configuration;
10 |  |
     import org.springframework.context.annotation.PropertySource;
11 |  |
12 |  |
     @EnableAutoConfiguration
13 |  |
     @Configuration
14 |  |
     @PropertySource(value = {"classpath:portal.properties"})
15 |  |
     @ComponentScan(basePackageClasses = {com.ctrip.apollo.common.ApolloCommonConfig.class,
16 |  |
         com.ctrip.apollo.portal.PortalApplication.class})
17 | 1 |
     public class PortalApplication {
18 |  |
19 |  |
       public static void main(String[] args) throws Exception {
20 | 0 |
         ConfigurableApplicationContext context = SpringApplication.run(PortalApplication.class, args);
21 | 0 |
         context.addApplicationListener(new ApplicationPidFileWriter());
22 | 0 |
         context.addApplicationListener(new EmbeddedServerPortFileWriter());
23 | 0 |
       }
24 |  |
     }