package com.socgen.finit.easymargin;

import com.socgen.finit.easymargin.converter.TradeFileHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.orm.hibernate4.HibernateExceptionTranslator;
import java.util.Arrays;

@Slf4j
@SpringBootApplication
@Import(DefaultConfig.class)
public class Application {

    @Autowired
    TradeFileHandler tradeFileHandler;

    public static void main(String[] args) {

        ApplicationContext ctx = SpringApplication.run(Application.class, args);
        
        log.info("Let's inspect the beans provided by Spring Boot:");
        
        String[] beanNames = ctx.getBeanDefinitionNames();
        Arrays.sort(beanNames);
        for (String beanName : beanNames) {
            log.info(beanName);
        }
    }

    @Bean
    public HibernateExceptionTranslator hibernateExceptionTranslator() {
        return new HibernateExceptionTranslator();
    }
}

@@ -246,79 +246,8 @@
 on;%0A
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0A
 impo
@@ -422,69 +422,8 @@
 an;%0A
-import org.springframework.context.annotation.ComponentScan;%0A
 impo
@@ -544,16 +544,17 @@
 slator;%0A
+%0A
 import j
@@ -1104,16 +1104,144 @@
        %7D
+%0A%0A        log.info(%22Server started - URL : http//localhost:%22 +%0A                ctx.getEnvironment().getProperty(%22server.port%22));
 %0A    %7D%0A%0A

Add automatic launch with maven test phase