解决方案 »

  1.   

    <link href="/resources/css/test.css" rel="stylesheet" type="text/css"/>
    html中是这么写的 提示404
      

  2.   

    是不是css的访问路径问题,LZ可以查一下
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <head>
    <base href="<%=basePath%>">
    <link href="/resources/css/test.css" rel="stylesheet" type="text/css"/>
    </head>
      

  3.   

    <mvc:resources location="/WEB-INF/resources/**" mapping="/resources"/> 试试这样