浏览器打印:Failed to decode downloaded font:tff/woff

原因可能是IDEA在打包的时候,把这字体给过滤拦截了,可以在pom.xml进行配置:
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <excludes>
                    <exclude>**/*.woff</exclude>
                    <exclude>**/*.woff2</exclude>
                    <exclude>**/*.ttf</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>**/*.woff</include>
                    <include>**/*.woff2</include>
                    <include>**/*.ttf</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>

 

 

浏览器打印:Failed to decode downloaded font:tff/woff

上一篇:Linux 搭建私有软件仓库


下一篇:【Unity3D】【NGUI】本地生成API文档