Problem is common, I've tried a lot of solutions but nothing works for me. I am quite new in Spring so I may not understand some things.
I've got next files structure:
My link inside page is templated by Thymeleaf like this:
<link rel="stylesheet" th:href="@{css/bootstrap.css}" type="text/css"/>
Also, there is attribute in head of html.
Ok, and my spring-context.xml is:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!--to pick up all annotation in the package-->
<context:component-scan base-package="langquiz"/>
<mvc:annotation-driven />
<mvc:resources mapping="/css/**" location="/css/"/>
</beans>
I've tried some manipulations with mapping (like writing location="/templates/css/" or location="css/"), also tried resource handler in configuration class. But nothing helps.
Thank you!
UPD: Changed
<mvc:resources mapping="/css/**" location="/css/"/>
to
<mvc:resources mapping="/css/**" location="/templates/"/>
and also tried
<mvc:resources mapping="/css/**" location="/"/>
but still have no result.
