package com.focusit.jsflight.server;

import com.focusit.jsflight.server.service.SettingsService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

import javax.inject.Inject;

/**
 * Generic Spring Boot Application entry point
 */
@Configuration
@EnableAutoConfiguration(exclude = {EmbeddedMongoAutoConfiguration.class})
@ComponentScan
@SpringBootApplication
@EnableMongoRepositories(basePackages = "com.focusit.jsflight.server.repository")
@PropertySource(value = "classpath:application.properties", ignoreResourceNotFound = true)
public class ServerApplication implements CommandLineRunner
{
    @Inject
    SettingsService settingsService;

    public static void main(String[] args)
    {
        SpringApplication.run(ServerApplication.class, args);
    }

    @Override
    public void run(String... strings) throws Exception
    {
        settingsService.getSettings();
    }
}

@@ -337,101 +337,8 @@
 on;%0A
-import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;%0A
 impo
@@ -728,58 +728,8 @@
 tion
-(exclude = %7BEmbeddedMongoAutoConfiguration.class%7D)
 %0A@Co

fix test