解决方法:


14 down vote accepted

The issue is that Maven was filtering the font files and corrupting them.

    <resource><directory>${project.basedir}/src/main/resources</directory><filtering>true</filtering></resource>

The fix was to make the following changes to the pom.xml

    <resource><directory>${project.basedir}/src/main/resources</directory><filtering>true</filtering><excludes><exclude>static/fonts/**</exclude></excludes></resource><resource><directory>${project.basedir}/src/main/resources</directory><filtering>false</filtering><includes><include>static/fonts/**</include></includes></resource>

This change allows for the fonts to not be filtered during packaging.

参考:https://stackoverflow.com/questions/34037051/spring-boot-font-awesome-ots-parsing-error-failed-to-convert

Spring Boot - Font Awesome OTS parsing error: Failed to convert( Failed to decode downloaded font)相关推荐

  1. Spring Boot + Bootstrap 出现Failed to decode downloaded font和OTS parsing error: Failed to convert W

    转载自:https://www.cnblogs.com/tomcatandjerry/p/5799188.html 准确来讲,应该是maven项目使用Bootstrap时,出现 "Faile ...

  2. springboot : Failed to decode downloaded font 和 OTS parsing error

    大家好,我是烤鸭: 采坑实录,看了很多人跟我有类似问题,但是都没解决我的问题: Failed to decode downloaded font 和 OTS parsing error: 尝试了把wo ...

  3. Spring Boot + JPA +MySQL 数据操作及示例环境搭建(手动建表建类)

    本篇演示如何搭建Spring Boot+JPA + MySQL 的开发环境, 以及使用JPA进行基本的查询. 环境搭建 1. Spring Boot项目创建 Spring Boot 项目的搭建参考: ...

  4. Failed to decode downloaded font(线上环境字体图标不显示)

    1.问题:maven项目使用Bootstrap时,出现 "Failed to decode downloaded font"和"OTS parsing error: Fa ...

  5. Spring Boot + JPA +MySQL 数据操作及示例环境搭建(自动建表)

    JPA 是Java官方提供的数据持久的统一API , 是一个接口标准,并没有具体实现. JPA的实现常见的有: Hibernate TopLink (Eclipse Link) Spring Boot ...

  6. Spring Boot + vue-element 开发个人博客项目实战教程(四、数据库搭建和配置)

    前言 java项目已经创建好了,接下来我们要准备数据库了,数据库是干嘛的相信大家都知道了,我在这就不说了,我们需要做的就是在电脑上安装mysql数据库. 附菜鸟教程的MySQL基础学习教程:https ...

  7. Spring Boot + vue-element 开发个人博客项目实战教程(一、项目介绍和规划)

    ⭐ 作者简介:码上言 ⭐ 代表教程:Spring Boot + vue-element 开发个人博客项目实战教程 ⭐专栏内容:零基础学Java.个人博客系统 ⭐我的文档网站:http://xyhwh- ...

  8. OTS parsing error: invalid version tag woff和ttf文件被Filter拦截

    从服务器下载的字体文件放在本地,执行无法展示iconfont,浏览器控制台报出 Failed to decode downloaded font: http://127.0.0.1:8080/mhr/ ...

  9. 解决springboot报错:OTS parsing error: incorrect file size in WOFF header

    错误问题: 谷歌浏览器 console 中报警告信息: Failed to decode downloaded font: /font/element-icons.woff OTS parsing e ...

最新文章

  1. 1475 m进制转十进制
  2. 天翼云从业认证课后习题(3.3天翼云网络产品)
  3. 【机器学习】朴素贝叶斯(Naive Bayes)
  4. 林锐 高质量c语言编程下载,新年献礼:Go语言深度入门手册
  5. NOIP2015 写后感
  6. 思科怎么修改dhcp服务器地址,思科交换机配置作为DHCP服务器的配置方法是怎样的?...
  7. vue 开发中element-ui库的switch开关绑定number类型数据不成功问题 解决方法
  8. 02C++namespace命名空间
  9. 【2016-2017 ACM-ICPC (ECNA 2016) F】Removal Game【区间DP】
  10. Go基础编程:工作区
  11. Web前端CSS颜色代码大全
  12. 原创nio socket mina+javascript+flash实现commet长连接网页聊天室
  13. 怎么样把自己计算机两个硬盘合并,两个硬盘怎么合并成一个盘
  14. Excel批量设置数字转化成“以文本形式存储的数字
  15. Win10在某些程序输入中文变成问号的解决方法
  16. 易优cms 模板制作教程
  17. 实验室师哥阿里巴巴面试总结----菜冬瓜
  18. linux 传输文件stpf,在Linux下搭建 miniGUI mStudio环境...-linux 全面剖析ps命令-纯Servlet实现文件上传_169IT.COM...
  19. Geany设置全黑色主题
  20. 软件测试-如何抓取APP测试中崩溃的log日志

热门文章

  1. php获取是否是周六,PHP获取时间排除周六、周日的两个方法
  2. nginx前言 - 负载均衡
  3. linux系统基本命令实验原理,《操作系统原理与Linux》实验一 Linux基本命令.doc
  4. 【看表情包学Linux】初识文件描述符 | 虚拟文件系统 (VFS) 初探 | 系统传递标记位 | O_TRUNC | O_APPEND
  5. hihocoder 1634
  6. soapUI-Groovy Script
  7. 如何在云服务器上搭建一个自己的博客系统(完整流程梳理)
  8. html5 加上魔法,HTML5 哈利波特的魔法课堂
  9. 电脑无法显示计算机,解决方案:如果无法打开计算机且屏幕不显示,该怎么办?台式电脑开机黑屏修复技巧...
  10. 教育部:在线教学要从“新鲜感”走向“新常态”