title: How to get context path in thymelaef
body: <p>I develop Spring Boot app with Thymeleaf templates. I would like add prefix (server context path) to code below like <code>'serverContext/user/' + user.id</code>. I tried to change $ to @ but <code>user.id</code> was converted to string.   </p>
  
  <p>Thank you.</p>
  
  <pre><code>&lt;tr th:each="user : ${users}"&gt;
      &lt;td&gt;&lt;a th:href="${ '/user/' + user.id}"&gt;View&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p><strong>Edit:</strong> Fixed by <code>&lt;td&gt;&lt;a th:href="@{/}+${ 'user/' + user.id}"&gt;View&lt;/a&gt;&lt;/td&gt;</code></p>
  
  <p>Is any other solution there?</p>