I am trying to build a weather Scraper website using Spring MVC. For now, i am trying to make the design of the website. When, i try to insert a background image for this design, it does not seem to appear when i check out the URL(http://localport:8080/weatherScraper). However, the rest of the elements appear as expected.
My Controller class:
public class Controller {
@RequestMapping(value = "/weatherScraper", method = RequestMethod.GET)
public String webpageGet(ModelMap modelMap){
return "Mainpage";
}
}
I saved the image as weather.jpg. I even tried <body background = "weather.jpg" and <body style="background-image:url("weather.jpg")" and I tried a lot of other different ways but it still did not work for me. Can someone help me out on this please?