package com.focusit.jsflight.server;

import javax.inject.Inject;

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.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * Generic Spring Boot Application entry point
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
@SpringBootApplication
@EnableMongoRepositories(basePackages = "com.focusit.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();
    }
}

@@ -35,37 +35,8 @@
 r;%0A%0A
-import javax.inject.Inject;%0A%0A
 impo
@@ -601,16 +601,45 @@
 ories;%0A%0A
+import javax.inject.Inject;%0A%0A
 /**%0A * G
@@ -816,16 +816,32 @@
 focusit.
+jsflight.server.
 reposito

Fix ServerApplication.java