OTS parsing error: incorrect file size in WOFF header

springboot项目中添加了字体等文件后,页面无法识别,浏览器调试窗口报错如下:

OTS parsing error: incorrect file size in WOFF header
OTS parsing error: incorrect entrySelector for table directory

解决方式,pom文件中增加如下内容,不对字体文件进行过滤即可:

``

` `

``

`org.apache.maven.plugins`

`maven-resources-plugin`

``

``

`ttf`

`woff`

`woff2`

``

``

``

``

``

最后不要忘记重启项目!!清空浏览器缓存!!

你可能感兴趣的:(OTS parsing error: incorrect file size in WOFF header)