如何将JSP与CSS链接?

时间:2018-08-23 17:55:01

标签: java css jsp

我正在尝试将home.jsp链接到home.css文件。 我有以下文件夹分布: enter image description here

在我的.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'

有什么想法吗?

0 个答案:

没有答案