Failed to decode downloaded font 问题解决

描述:打开页面之后发现有的图标展示不出来

正常图标:

                              

异常图标:

               

F12之后看到控制台打印了这些信息

Failed to decode downloaded font: http://localhost:8080/scheduler/assets/global/plugins/simple-line-icons/fonts/Simple-Line-Icons.ttf

user-group-page.html:1 OTS parsing error: incorrect entrySelector for table directory



触发这种情景的原因是因为项目使用了Maven管理,想要修复它只需在pom文件中添加

<filtering>false</filtering>
看整体配置:
<build>
   <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-war-plugin</artifactId>
         <version>2.1.1</version>
         <configuration>
            <webResources>
               <resource>
                  <directory>src/main/webapp</directory>
                  <filtering>false</filtering>
               </resource>
            </webResources>
         </configuration>
      </plugin>
   </plugins>
</build>
然后问题解决!


  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 24
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 24
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值