0

I need help. I use spring boot, but my index page does not detect css file and images. Тhis way i insert a link to the css file.

<link rel="stylesheet" th:href="@{/css/style.css}" />

and this for images

<img th:src="@{/images/logo.png}" width=90% height=80%>

enter image description here

I try to delete browser cache data and run project again, but the css and images don't show

1 Answer 1

1

Create static folder inside resources. Put css and images folders in static folder. Restart spring

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.