Person I am trying to set an image inside the css, for this I am using:
body {
margin: 0px;
padding: 0px;
background: #C0C4C5 url(images/page-body-bg.png) repeat;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 13px;
color: #2E2E2E;
}
I can quietly access through the clink:
http://localhost:8080/Spring4MVCHelloWorldDemo/images/page-body-bg.png
Problem: You are not loading the image, I have already tried it:
background: #C0C4C5 url(images/page-body-bg.png) repeat;
background: #C0C4C5 url(/images/page-body-bg.png) repeat;
background: #C0C4C5 url(./images/page-body-bg.png) repeat;
background: #C0C4C5 url(../images/page-body-bg.png) repeat;
andthemappinginspring.servlet.xmllookslikethis:
<mvc:annotation-driven/><mvc:resourcesmapping="/images/**" location="/WEB-INF/images/" />
<mvc:resources mapping="/css/**" location="/WEB-INF/css/" />