Bom dia galera, eu estou desenvolvendo uma aplicação Java Web, usando o Tomcat e Spring MVC. Quando eu executo o servidor não encontra as imagens e nem o css da página, no inspetor do navegador aparece no console “Failed to load resource: the server responded with a status of 404 (Not Found)”
arquivo de configuração do String MVC
<?xml version='1.0' encoding='UTF-8' ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd">
<mvc:annotation-driven/>
<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:default-servlet-handler/>
<context:component-scan base-package="br.com.Allibus.SistemaInventario"/>
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/View/"/>
<property name="suffix" value=".jsp"/>
</bean>
</beans>
Pagina Home
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>Home </title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<c:url value="/resources/css/Home.css"/>">
<link rel="stylesheet" href="<c:url value="/resources/css/Universal.css"/>">
</head>
<body>
<c:import url="Cabecalho.jsp" />
<div class="content clearfix">
<button class="botoes" id="btEquipamentos">Equipamentos</button>
<button class="botoes" id="btTrocas">Trocas</button>
<button class="botoes" id="btEnvios-recebimentos">Envios e Recebimentos</button>
<button class="botoes" id="btUsuarios">Usuários</button>
<button class="botoes" id="btRelatorios">Relatórios</button>
</div>
<footer id="rodape"></footer>
</body>
</html>
Cabelçalho
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<header id="cabecalho">
<img alt="Logo Allibus Transportes" id="logo" src="<c:url value="/resources/imgs/1-logotipo-AlliBus-transp-menorBranco.png"/>">
<a href="home" title="Home" id="tituloHome">
<h1 id="titulo">Inventário</h1>
</a>
<nav>
<ul id="listaMenu">
<li>
<a href="home" title="Home" id="menuHome">
<img alt="Home" src="<c:url value="/resources/imgs/home-icon-silhouette.png"/>" class="icones">
<h2>
Home
</h2>
</a>
</li>
<li>
<a href="equipamentos" title="Equipamentos" id="menuEquipamentos">
<img alt="Equipamentos" src="<c:url value="/resources/imgs/computer.png"/>" class="icones">
<h2>
Equipamentos
</h2>
</a>
</li>
<li>
<a href="trocas" title="Trocas" id="menuTrocas">
<img alt="Trocas" src="<c:url value="/resources/imgs/exchange-arrows.png"/>" class="icones">
<h2>
Trocas
</h2>
</a>
</li>
<li>
<a href="EnviosRecebimentos.jsp" title="Envios e recebimentos" id="menuEnvios-Recebimentos">
<img alt="Envios e Recebimentos" src="<c:url value="/resources/imgs/transport.png"/>" class="icones">
<h2>
Envios e Recebimentos
</h2>
</a>
</li>
<li>
<a href="Usuarios.jsp" title="Usuários" id="menuUsuarios">
<img alt="Usuarios" src="<c:url value="/resources/imgs/group.png"/>" class="icones">
<h2>
Usuários
</h2>
</a>
</li>
<li>
<a href="Relatorios.jsp" title="Relatórios" id="menuRelatorios">
<img alt="Relatórios" src="<c:url value="/resources/imgsbusiness.png"/>" class="icones">
<h2>
Relatórios
</h2>
</a>
</li>
<li>
<a title="Usuario" id="menuUsuarioLogado">
<img alt="Usuário" src="<c:url value="/resources/imgs/user.png"/>" class="icones">
<h2>
Olá Milena
</h2>
</a>
</li>
</ul>
</nav>
</header>