I have a Spring Boot application. When my application starts up I have to seed the database. After that I don't need to seed it again. As of now, I'm doing this using Spring Batch. But the batch kicks off any time I start my app (dev-test-redeploy).
Is there a way for me to tell Spring Batch to do nothing based on a variable? I know how to get my environment parameters anywhere they need to be, I just don't know where to put it in my Spring Batch setup.
Any help is greatly appreciated.