springboot项目引入bootstrap后,报:Failed to decode downloaded font,图标不能正常显示
在pom文件中,添加如下配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
在启动后,显示正常
大家有疑问可以添加qq群:789318548, 也可以关注今日头条《老徐聊技术》我会解答。