Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aka-z/4a4356b3347a9adaade4db034bb7be4c to your computer and use it in GitHub Desktop.
Save aka-z/4a4356b3347a9adaade4db034bb7be4c to your computer and use it in GitHub Desktop.
Concatenate strings in Thymeleaf
<p th:text="${bean.field + '!' + bean.field}">Static content</p>
th:text="'static part' + ${bean.field}"
th:text="${'static part' + bean.field}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment