title: Spring controller parameter is being assumed instantiated but when/where was it instantiated?
body: <p><a href="https://github.com/thymeleaf/thymeleafexamples-stsm" rel="nofollow noreferrer">Thymeleaf tutorial code</a></p>
  
  <p>How is this SeedStarter getting instantiated?
  See the method body shows interaction with an object SeedStarter..so how did it get instantiated in the first place?</p>
  
  <p>Since this project is a tutorial, I will excerpt the exact place I've looked for answers. I am not CURRENTLY aware of any other way that this "guest" object could be created other than if:
  1. It were previously created and added to the model. (No init in controller then probably isnt added to the model elsewhere)
  2. A private member of the controller that was already created.</p>
  
  <pre><code>@RequestMapping({"/","/seedstartermng"})
      public String showSeedstarters(final SeedStarter seedStarter) {
          seedStarter.setDatePlanted(Calendar.getInstance().getTime());
  
          return "seedstartermng";
      }
  </code></pre>
  
  <p>CONTROLLER:</p>
  
  <pre><code>@Controller
  public class SeedStarterMngController {
  
  
      @Autowired
      private VarietyService varietyService;
  
      @Autowired
      private SeedStarterService seedStarterService;
  
  
  
      public SeedStarterMngController() {
          super();
      }
  
  
  
      @ModelAttribute("allTypes")
      public List&lt;Type&gt; populateTypes() {
          return Arrays.asList(Type.ALL);
      }
  
      @ModelAttribute("allFeatures")
      public List&lt;Feature&gt; populateFeatures() {
          return Arrays.asList(Feature.ALL);
      }
  
      @ModelAttribute("allVarieties")
      public List&lt;Variety&gt; populateVarieties() {
          return this.varietyService.findAll();
      }
  
      @ModelAttribute("allSeedStarters")
      public List&lt;SeedStarter&gt; populateSeedStarters() {
          return this.seedStarterService.findAll();
      }
  
  
  
      @RequestMapping({"/","/seedstartermng"})
      public String showSeedstarters(final SeedStarter seedStarter) {
          seedStarter.setDatePlanted(Calendar.getInstance().getTime());
          return "seedstartermng";
      }
  </code></pre>