zoukankan      html  css  js  c++  java
  • ASP.NET MVC请求特殊静态文件返回404 Not Found

    今天在请求静态的json档案以及woff2档案,会返回404错误,需要在Web.Config里修改:

     1  <system.webServer>
     2     <modules>
     3       <remove name="FormsAuthentication" />
     4     </modules>
     5     <handlers>
     6       <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
     7     </handlers>
     8     <staticContent>
     9       <mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
    10       <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
    11     </staticContent>
    12   </system.webServer>
  • 相关阅读:
    决策树
    交叉熵与softmax
    集成学习
    SVM算法
    蒙特卡罗方法
    K近邻--KNN
    K-Means聚类
    DBSCAN密度聚类
    Bagging、随机森林
    支持向量机SVM
  • 原文地址:https://www.cnblogs.com/milo-xie/p/4821410.html
Copyright © 2011-2022 走看看