title: How can I get request parameters from REST style URL in thymeleaf?
body: <p>In the thymeleaf documentation there's only option to get request parameters from urls which looks like,</p>
  
  <pre><code>https://example.com/getUser?id=10
  </code></pre>
  
  <p>I can use <code>${param.id[0]}</code> to access the user id in thymeleaf whereas if I have a REST-style url like this,</p>
  
  <pre><code>https://example.com/user/10
  </code></pre>
  
  <p>How can I access the user id(10) in the page using thymeleaf with the above URL? Of course I can set a model attribute to access the id of user in the page. But just wondering if there any better way to do this in thymeleaf in order to minimize the code?</p>