zoukankan      html  css  js  c++  java
  • springmvc 加载静态文件失败


    header.jsp,部分代码
    <head>
    <title>QA|VIS_PLATFORM</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />

    <!-- ================== GLOBAL STYLE START ================== -->
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
    <link href="${base}/css/bootstrap/bootstrap.css" rel="stylesheet" />
    <#--<link href="${base}/css/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />-->
    <link href="${base}/css/bootstrap/font-awesome.min.css" rel="stylesheet" />
    <link href="${base}/css/bootstrap/jquery-ui-1.10.1.custom.css" rel="stylesheet" />
    <link href="${base}/css/bootstrap/style.min.css" rel="stylesheet" />
    <link href="${base}/css/bootstrap/style-responsive.min.css" rel="stylesheet" />

    加载静态文件失败。

    解决方案:在mvc的配置文件中加入以下配置

    <mvc:resources location="/WEB-INF/" mapping="**"></mvc:resources>
  • 相关阅读:
    php-管理变量
    php-变量的间接引用
    php-eval()
    HTML
    php观
    笔记1
    脚本语言
    Windows Server 2012如何把快捷方式加到启动文件夹中
    VIM的笔记
    mongodb 从3.0 升级到3.2
  • 原文地址:https://www.cnblogs.com/paisen/p/8127527.html
Copyright © 2011-2022 走看看