We have a Spring MVC project with multiple Maven modules. We package it into an EAR and deploy it to a WildFly server.
I am trying to do a single time job on project start up. Thus, I thought about the CommandLineRunner interface, the project would compile and run but the commandLineRunner run method wouldn't run.
I guess it's because we are using an MVC Spring project and not a SpringBoot one with its own embedded server. Can you suggest any ways to implement such a concept in Spring MVC ?
Thanks.