title: How to print data with Thymeleaf
body: <p>I am new to Spring MVC and trying to list some data on the view by using Thymeleaf</p>
  
  <p>Controller</p>
  
  <pre><code>   @RequestMapping("/booksWithMultipleAuthors")
      public String booksWithMultipleAuthors(Model model) {
  
          model.addAttribute("booksWithMultipleAuthors", this.userService.getAllWithAuthors());
  
          return "booksWithMultipleAuthors";
      }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;div th:each="author : *{authors}" th:object="${author}"&gt;
      &lt;a th:text="${author.name}"&gt;Author name:&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am able to list books but when it comes to list authors i am getting <code>HTTP Status 500 - Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'org.thymeleaf.standard.processor.attr.StandardEachAttrProcessor' (booksWithMultipleAuthors)</code> error. How do i fix this ?</p>