我正在使用带有Freemarker模板引擎的spark web framework for java。我的html代码是这样的:
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bootstrap.min.css">
<!-- Custom styles for dashboard -->
<link rel="stylesheet" href="dashboard.css">
<!-- Optional theme -->
<link rel="stylesheet" href="bootstrap-theme.min.css">
当我想要包含这些放在我的resources/public目录中的css文件时,Spark抛出了这个:
[qtp765086197-18] INFO spark.http.matching.MatcherFilter - The requested route [/bootstrap-theme.min.css.map] has not been mapped in Spark for Accept: [null]我不知道这是不是一个错误,因为一切都很好,但是我怎么才能摆脱这个呢?
发布于 2017-02-18 03:59:04
该错误清楚地表明问题出在.map文件上。
您必须将其添加到您的文件夹中,或者改为使用 bootstrap-theme**.**的精简版本
此外,您可以使用开发人员工具检查浏览器是否正确加载了css文件。
https://stackoverflow.com/questions/42122101
复制相似问题