Create files for your messages
messages.properties
messages_en.properties
messages_fr.properties
...
Write messages in this files like this
header.label.title=Title
Configure path to this files (in this case in folder D:/project/messages) in application properties like:
...
Write message in messages.properties
welcome.message=Hello, {0}!
Replace {0} with the user name inside thymeleaf tag
<h3 th:text="#{welcome.message(${some.variable})}">Hello, Placeholder</h3>