错误问题:

  谷歌浏览器 console 中报警告信息:

  Failed to decode downloaded font: /font/element-icons.woff
  OTS parsing error: incorrect file size in WOFF header

原因:

  由于使用 maven 的 resource 插件开启 filtering 功能后,会破坏有二进制内容的文件。

解决方案:

      修改pom.xml

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins><resources><resource><directory>src/main/resources</directory><filtering>true</filtering><excludes><exclude>**/*.ttf</exclude><exclude>**/*.woff</exclude></excludes></resource><resource><directory>src/main/resources</directory><filtering>false</filtering><includes><include>**/*.ttf</include><include>**/*.woff</include></includes></resource></resources>
</build>

解决springboot报错:OTS parsing error: incorrect file size in WOFF header相关推荐

  1. Maven — maven filtering OTS parsing error incorrect file size in WOFF head 产生原因及两种解决方案

    背景说明 前端静态资源文件放在后端SpringBoot项目resources文件夹下,多环境打包后前端页面出现了图标及文字未按预期样式显示的情况,查看浏览器控制台发现出现如下错误. OTS parsi ...

  2. 【Debugger】解决springboot报错Failed to resolve org.junit.platform:junit-platform-launcher:1.x.x的两种解决方案

    [Debugger]解决springboot报错Failed to resolve org.junit.platform:junit-platform-launcher:1.x.x的两种解决方案 主要 ...

  3. 解决vscode报错:command-line error: language modes specified are incompatible C/C++(1027)

    解决vscode报错: 命令行错误: 指定的语言模式不兼容, c/c++:1027 (1)当设置为下面时, "C_Cpp.intelliSenseEngine": "De ...

  4. php数据库报错1046怎么解决,DZ报错MySQL Query Error Errno:1046错误的解决办法

    这篇文章主要为大家详细介绍了DZ报错MySQL Query Error Errno:1046错误的解决办法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴. DZ报 ...

  5. 报错:C1189#error: The <experimental/filesystem> header providing std::ex………………

    具体报错为:#error The <experimental/filesystem> header providing std::experimental::filesystem is d ...

  6. linux:can't open file for write,解决 Linux-Ubuntu 报错E212: Can't open file for writing

    为了装spark,先装Hadoop: 为了装Hadoop,先搭建Linux环境和设置环境变量,于是有了本文的报错"E212: Can't open file for writing" ...

  7. 解决Nginx报错502之:[error] 17929#17929:57 rewrite or internal redirection cycle while internally redirect

    一.报错问题: 当我们访问web页面时,有时会报错502网关问题,报错问题五花八门 常见报错如下: 查看nginx中的 access.log 发现,报错如下: 二.报错原因 原因:因为当我们在进行ng ...

  8. ESLint报错之 -- Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag

    ESlint Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag (分析错误:相邻的JSX元素必须包装在封 ...

  9. 解决Tomcat报错:SEVERE: Error listenerStart

    本机调通的Java web Project部署到集群服务器后无法访问,排除了Tomcat自身问题之后,查看日志文件,错误信息如下: SEVERE: Error listenerStart 百度了一下, ...

最新文章

  1. 限制php解析、user_agent、php相关配置
  2. html调用asp边疆,[求助]怎么实现ASP在HTML中调用
  3. 劳动节,这样的自动叠衣服机器人给我来10个
  4. 合成孔径雷达基于RDA算法的点目标仿真
  5. Redis整合Spring结合使用缓存实例(转)
  6. Opportunity retrieval in SalesPipeline
  7. 软件设计开发笔记1:基于状态机的程序设计
  8. 使用zend studio配置Xdebug调试PHP教程
  9. linux下常见软件安装
  10. Dxg——C# 开发笔记整理分类合集【所有的相关记录,都整理在此】
  11. Mysql 5.7 Gtid内部学习(八) Gtid带来的运维改变
  12. Android应用程序开发以及背后的设计思想深度剖析
  13. vscode编译器添加c++万能头文件
  14. gaussian09使用教程linux,Gaussian-09-GaussView5.0使用教程.ppt
  15. 产品经理|竞品分析(附《竞品分析报告》模板)
  16. 登录和访问EI(Engineering Village)数据库查找文献
  17. 红米k40关闭开发者模式教程介绍
  18. Golang 原子操作与互斥锁
  19. 什么是Linkerd
  20. 2022年度安徽省职业院校技能大赛中职组“网络搭建与应用”赛项竞赛试题

热门文章

  1. ExpandableListView展开收缩加动画效果
  2. 27.(leaflet之家)leaflet接入百度午夜蓝地图、深色地图
  3. 未必都能改变世界 但它们却是2018年最聪明的科技创意
  4. UseModel 简单用法
  5. 5张思维导图详解《阿Q正传》高考生必知
  6. 使用SDEI上报RAS故障
  7. 《离散数学导学》精炼:第1-3章(导论,数,命题逻辑)
  8. Win10上EMACS反应速度特别慢问题解决
  9. 您应该购买 Mac Mini 还是 Mac Studio ?
  10. MonoDroid学习笔记(十二)—— 您有一条新短信息,请注意查收。状态栏提醒