Start background thread using spring on startup
In this tutorial we will start a thread on the application startup using spring bean.So we will start the thread using @PostConstruct annotation on the method. So this makes sure that the annotated method is called before the Spring bean is put into service. And we will be using executor service to start a thread. … Read more