HTTP請求沒有映射我最近開始使用字體真棒V4.5.0。直到我從java 7升級到java 8並從v3.2升級到v4.0之前,它一直像魅力一樣工作。發現與URI預警字體 - 真棒字體文件
現在,字體真棒圖標顯示爲正方形。瀏覽器控制檯(螢火蟲)shows-
NetworkError: 404 Not Found - http://localhost/myapp/fonts/fontawesome-webfont.woff2?v=4.5.0
和tomcat的catalina.out的日誌是否顯示了以下的 '字體' 文件夾是警告 -
No mapping found for HTTP request with URI [/myapp/fonts/fontawesome-webfont.woff2 in DispatcherServlet with name 'myappservlet'
No mapping found for HTTP request with URI [/myapp/fonts/fontawesome-webfont.woff] in DispatcherServlet with name 'myappservlet'
No mapping found for HTTP request with URI [/myapp/fonts/fontawesome-webfont.ttf] in DispatcherServlet with name 'myappservlet'
位置在font-awesome.min.css的@ font-face src中正確指定。 (除了java版本和spring framework版本沒有變化,它突然停止工作)
Thanks @martin。刪除url-pattern'/'解決了這個問題。:-) – shankulk