I have Spring Boot application which works ok. Now I want to add on-demand feature to import some data from file on disc (it'll be used once and never again). I have database connection, DTO objects etc ready to use, also the method to import data. 
I would like to start my application, for example with command line switch (for example -file path/to/file). It should make an app start, execute my import method, and shutdown.
The best would be not to start embedded Tomcat.

I was thinking about separate main class annotated @SpringBootApplication, and about running with -classpath, but I don't know it's good idea.

Now I think it's better to make small separated project, but maybe there's a nice feature, which allow me to run my app once and execute import method.