I have looked into lot of solution in this site and many others for this issue but nothing seems to work for me. so i am putting again this common question how to configure css with spring mvc
here are my config
web.xml


log4jConfigLocation
classpath:log4j.xml
contextConfigLocation
/WEB-INF/spring-servlet.xml /WEB-INF/security-context.xml org.springframework.web.context.ContextLoaderListe ner org.springframework.web.util.Log4jConfigListener springSecurityFilterChain org.springframework.web.filter.DelegatingFilterPro xy springSecurityFilterChain /* spring org.springframework.web.servlet.DispatcherServlet 1 spring / default *.css index.html index.htm index.jsp default.html default.htm default.jsp spring-servlet.xml




classpath:hibernate.cfg.xml
org.hibernate.cfg.AnnotationConfiguration


${jdbc.dialect}
true



My css file location

src/main/webapp/css/test.cssjsp code

Login test

test.css

body {color:blue;}h1 {color:#00ff00;}Please tell where i am making mistakethank you


Check Solution