In order to create a class that acts like a bootstrap for the application, that class needs to implement the
of the package org.springframework.beans.factory.InitializingBean
How to create a
Bootstrap class in spring boot
Following is an example of a Bootstrap class. This class will be executed first when the application is coming up and is ready to server requests. Any class that implements
will be executed before the application is up and its
method will be called.
public class Bootstrap implements InitializingBean