我正在尝试将home.jsp链接到home.css文件。 我有以下文件夹分布:
在我的.jsp内部,我有一个HTML代码,在其头部中,我具有以下内容:
<head>
<meta charset="UTF-8">
<title>MeinHaus</title>
<link rel="stylesheet" type="text/css" href="src/main/webapp/css/home.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
...other stuff
</head>
结果证明这是行不通的。我多次收到这些消息:
org.springframework.web.servlet.PageNotFound noHandlerFound
WARNING: No mapping found for HTTP request with URI [/null/hello/src/main/webapp/Iconos/Logo4.png] in DispatcherServlet with name 'dispatcher'
有什么想法吗?