package com.navercorp.pinpoint.collector;

import com.navercorp.pinpoint.common.server.util.ServerBootLogger;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

@SpringBootConfiguration
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, TransactionAutoConfiguration.class})
@ImportResource({ "classpath:applicationContext-collector.xml", "classpath:servlet-context-collector.xml"})
public class Hbase2CollectorApp {
    private static final ServerBootLogger logger = ServerBootLogger.getLogger(Hbase2CollectorApp.class);


    public static void main(String[] args) {
        try {
            CollectorStarter starter = new CollectorStarter(Hbase2CollectorApp.class);
            starter.start(args);
        } catch (Exception exception) {
            logger.error("[CollectorApp] could not launch app.", exception);
        }
    }

}

@@ -107,607 +107,101 @@
 er;%0A
-import org.springframework.boot.SpringBootConfiguration;%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration;%0Aimport org.springframework.context.annotation.ImportResource;%0A%0A@SpringBootConfiguration%0A@EnableAutoConfiguration(exclude = %7BDataSourceAutoConfiguration.class, TransactionAutoConfiguration.class%7D)%0A@ImportResource(%7B %22classpath:applicationContext-collector.xml%22, %22classpath:servlet-context-collector.xml%22%7D)
+%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication;%0A%0A@SpringBootApplication
 %0Apub
@@ -309,22 +309,16 @@
 tLogger(
-Hbase2
 Collecto
@@ -331,17 +331,16 @@
 lass);%0A%0A
-%0A
     publ
@@ -388,260 +388,123 @@
     
-try %7B%0A            CollectorStarter starter = new CollectorStarter(Hbase2CollectorApp.class);%0A            starter.start(args);%0A        %7D catch (Exception exception) %7B%0A            logger.error(%22%5BCollectorApp%5D could not launch app.%22, exception);%0A        %7D
+logger.info(String.format(%22%25s start%22, Hbase2CollectorApp.class.getSimpleName()));%0A%0A        CollectorApp.main(args);
 %0A   

Fix the collector for Hbase2 does not work