package com.adonis;

import com.adonis.utils.DatabaseUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import static com.adonis.install.InstallConstants.INSTALL;
import static com.adonis.install.VehicleManagerInstaller.createShortcat;

@SpringBootApplication
public class VehiclyManagerApplication {

	public static void main(String[] args) {
		if(args!=null && args.length>0 && args[0].equals("install") ){
			INSTALL = true;
		}else{
			INSTALL = false;
		}
		if( INSTALL ) createShortcat();
		try {
			if( INSTALL ) DatabaseUtils.createDatabase();
		} catch (Exception e) {
			e.printStackTrace();
		}

		SpringApplication.run(VehiclyManagerApplication.class, args);
	}
}

@@ -150,32 +150,225 @@
 nfigure.
-SpringBootApplic
+EnableAutoConfiguration;%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication;%0Aimport org.springframework.context.annotation.ComponentScan;%0Aimport org.springframework.context.annotation.Configur
 ation;%0A%0A
@@ -500,16 +500,71 @@
 rtcat;%0A%0A
+@Configuration%0A@ComponentScan%0A@EnableAutoConfiguration%0A
 @SpringB

update program