Move your template
folder right under resources
:
src/main/resource/static/css
(for CSS files);src/main/resource/templates
(for HTML templates).
Then correct the link
tag as follows:
<link href="https://stackoverflow.com/questions/41586841/static/css/Layout.css" th:href="@{/css/Layout.css}" rel="stylesheet" />