Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
maybe I didn't explain correctly before, Actually in our enterprise we work only with struts, and in our web projects configuration we have a servlet that loads on init() , in this servlet we have all parameters with Db connection and others, and then this paramaters are passed with propertyes.
with this configuration we get a log that writtes:
conecction database correct.....
so, I would like to log something similar when application starts.
If you want to have something to do when application starts ,then init() place is the only place where you can do it.Apart from that you need to mention <load-on-startup>0</load-start-up> for that servlet in your web.xml.This will lazily load the servlet on application start up and not when it receives its first request.