I have a web application that needs some static variables initialization as soon as I thrown the .war in the Tomcat webapp folder... this initialization needs to call a @Service to retrieve the initial set up.
I realized that the @Autowire injection only works when my view is calling the service
what is the best way to initialize my Spring web application after throw the .war in the app container? I need this initialization to be executed once only
thanks in advance
Aucun commentaire:
Enregistrer un commentaire