解决springboot报错:OTS parsing error: incorrect file size in WOFF header
错误问题:
谷歌浏览器 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相关推荐
- Maven — maven filtering OTS parsing error incorrect file size in WOFF head 产生原因及两种解决方案
背景说明 前端静态资源文件放在后端SpringBoot项目resources文件夹下,多环境打包后前端页面出现了图标及文字未按预期样式显示的情况,查看浏览器控制台发现出现如下错误. OTS parsi ...
- 【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的两种解决方案 主要 ...
- 解决vscode报错:command-line error: language modes specified are incompatible C/C++(1027)
解决vscode报错: 命令行错误: 指定的语言模式不兼容, c/c++:1027 (1)当设置为下面时, "C_Cpp.intelliSenseEngine": "De ...
- php数据库报错1046怎么解决,DZ报错MySQL Query Error Errno:1046错误的解决办法
这篇文章主要为大家详细介绍了DZ报错MySQL Query Error Errno:1046错误的解决办法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴. DZ报 ...
- 报错:C1189#error: The <experimental/filesystem> header providing std::ex………………
具体报错为:#error The <experimental/filesystem> header providing std::experimental::filesystem is d ...
- 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" ...
- 解决Nginx报错502之:[error] 17929#17929:57 rewrite or internal redirection cycle while internally redirect
一.报错问题: 当我们访问web页面时,有时会报错502网关问题,报错问题五花八门 常见报错如下: 查看nginx中的 access.log 发现,报错如下: 二.报错原因 原因:因为当我们在进行ng ...
- 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元素必须包装在封 ...
- 解决Tomcat报错:SEVERE: Error listenerStart
本机调通的Java web Project部署到集群服务器后无法访问,排除了Tomcat自身问题之后,查看日志文件,错误信息如下: SEVERE: Error listenerStart 百度了一下, ...
最新文章
- 限制php解析、user_agent、php相关配置
- html调用asp边疆,[求助]怎么实现ASP在HTML中调用
- 劳动节,这样的自动叠衣服机器人给我来10个
- 合成孔径雷达基于RDA算法的点目标仿真
- Redis整合Spring结合使用缓存实例(转)
- Opportunity retrieval in SalesPipeline
- 软件设计开发笔记1:基于状态机的程序设计
- 使用zend studio配置Xdebug调试PHP教程
- linux下常见软件安装
- Dxg——C# 开发笔记整理分类合集【所有的相关记录,都整理在此】
- Mysql 5.7 Gtid内部学习(八) Gtid带来的运维改变
- Android应用程序开发以及背后的设计思想深度剖析
- vscode编译器添加c++万能头文件
- gaussian09使用教程linux,Gaussian-09-GaussView5.0使用教程.ppt
- 产品经理|竞品分析(附《竞品分析报告》模板)
- 登录和访问EI(Engineering Village)数据库查找文献
- 红米k40关闭开发者模式教程介绍
- Golang 原子操作与互斥锁
- 什么是Linkerd
- 2022年度安徽省职业院校技能大赛中职组“网络搭建与应用”赛项竞赛试题