I'm trying to use .css
files in my project but it doesn't work. The directory hierarchy is: /resources/static/css/style.css
. In my html file I tried
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Header</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href = "/css/style.css" th:href="@{/css/style.css}" >
</head>
but it does not work. What to do to make the style work? I read several articles but did not understand how to solve the problem