title: How to put variable to img src path in Spring with thymeleaf?
body: <p>Well, I want my image show up with table data at Front(html).
  I use model.addAttributes to pass players information.
  And my original imgfile is in path : /img/</p>
  <p>This is my problem code below :</p>
  <pre><code>&lt;tbody&gt;
        &lt;tr th:each=&quot;players : ${players}&quot;&gt;
          &lt;td&gt;&lt;img src=&quot;/img/ + ${players.id} + '_' + ${players.name} + '.png'&quot; width=&quot;120&quot;/&gt;&lt;/td&gt;
  </code></pre>
  <p>My image naming is always define with &quot;id+name&quot;.png.
  I don't know how to combine it to img src path.
  And What I want for solution is to working like below :</p>
  <pre><code>        &lt;td&gt;&lt;img src=&quot;/img/1_pogba.png&quot; width=&quot;120&quot;/&gt;&lt;/td&gt;
  </code></pre>