Comment Initialiser l'application au printemps?

Maintenant de venir directement à mon point de vue,

Dans JSP je ferai le processus d'initialisation de mon application comme,

<%! public void jsp_init(){

      //Initialise the domain server to create protocol
      //Create the logging file
}%>

Maintenant, je vais reconstruire ma précédente demande de Servlets à Spring 3.2 .

Comment je peut faire cela avec Spring 3.2 ?

Un de mes colleague m'a dit de faire ce initialization with Constructor of the Spring Controller .

Parce que j'ai créé le haricot pour controller class dans le applicationContext.xml et je suis le chargement de la applicationContext.xml fichier withe ContextLoadListner dans web.xml .

Est-ce la bonne manière de l'Initialisation ?

Ce sujet ApplicationListener au printemps ?

Qui est la meilleure façon d'initialiser l'application dans spring 3.2 ?

Espère que notre pile les utilisateurs donnent une bonne solution.

OriginalL'auteur Human Being | 2013-07-04