title: Does Spring MVC initialize all controllers on start up??
body: <p>Good day people. Right now in my web application I use a lot of Lists which will have to be sessionAttributes for my app. All this stored in one controller:</p>
  
  <pre><code>@Controller
  @SessionAttributes({"institutionAttributes", "institutionTypeAttributes", "formDateAttributes", 
                          "formDescriptionAttributes", "deleteAttributesDescription", "deleteAttributesInstitution", "deleteAttributesDate"})
  public class MainController {
  
  
      List&lt;InstitutionInForm&gt; listOfInstitutionsAttributes = new ArrayList&lt;InstitutionInForm&gt;();
      List&lt;InstitutionTypeInForm&gt; listOfInstitutionTypesAttributes = new ArrayList&lt;InstitutionTypeInForm&gt;();
      List&lt;FormDate&gt; listOfFormDateAttributes = new ArrayList&lt;FormDate&gt;();
      List&lt;FormDescription&gt; listOfFormDescriptionsAttributes = new ArrayList&lt;FormDescription&gt;();
  
  
      List&lt;FormDescription&gt; listOfFormDescriptionsDeleteAttributes = new ArrayList&lt;FormDescription&gt;();
      List&lt;InstitutionInForm&gt; listOfInstitutionDeleteAttributes = new ArrayList&lt;InstitutionInForm&gt;();
      List&lt;FormDate&gt; listOfDatesDeleteAttributes = new ArrayList&lt;FormDate&gt;();
  
  //other methods omitted
  </code></pre>
  
  <p>Each of this Lists will initialize with initial value 10 and it takes some memory also. 
  I decide to separate them by separating controllers.  </p>
  
  <p>So, I'm asking how it will initialize controllers all right on start up my application or when DispatcherServlet will get request from user, find a proper controller on after initialize them with all Lists inside.??? </p>
  
  <p>How can I prevent initializing don't needed at the moment controllers and Lists so on?</p>
  
  <p>Thank you developers. Good productive coding day.</p>