layui页面图标不显示,报错信息:Failed to decode downloaded font .....

解决办法

在 pom.xml中添加如下信息即可解决

<build>
        <resources>
            <resource>
                <directory>src/main/resourcesdirectory>
                <filtering>truefiltering>
                <excludes>
                    <exclude>**/*.woffexclude>
                    <exclude>**/*.woff2exclude>
                    <exclude>**/*.ttfexclude>
                excludes>
            resource>
            <resource>
                <directory>src/main/resourcesdirectory>
                <filtering>falsefiltering>
                <includes>
                    <include>**/*.woffinclude>
                    <include>**/*.woff2include>
                    <include>**/*.ttfinclude>
                includes>
            resource>
        resources>
    build>

你可能感兴趣的:(前端)