title: Thymeleaf include template with own controller
body: <p>I am trying to include the same bit of html into various pages. This template is a table that displays data from the database. I know Thymeleaf has fragments, but as far as I can tell I can't include a fragment with its own controller, which my template will need so it can retrieve the necessary data.</p>
  
  <p>I have seen <a href="https://stackoverflow.com/questions/32964558/thymeleaf-fragment-with-own-controller">this question</a>, but this template can be called multiple times on the same page and adding that many attributes to the Model does not seem like the correct solution(not to mention that the attribute names need to be unique). </p>
  
  <p>Is there any way to include this template in Thymeleaf so it has its own controller separate from the page it is included too.</p>