解决 spring boot Failed to decode downloaded font

Posted 小猫钓鱼吃鱼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 spring boot Failed to decode downloaded font相关的知识,希望对你有一定的参考价值。

一个静态资源加载的问题反反复复的解决了挺久,现在找到了解决方法,分享如下

<build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

  重点是  src/main/resources  不要过滤

<resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
            </resource>

  

 

以上是关于解决 spring boot Failed to decode downloaded font的主要内容,如果未能解决你的问题,请参考以下文章

Spring-boot2.0.1.BUILD-SNAPSHOT整合Elasticsearch报failed to load elasticsearch nodes错误解决办法

Spring Boot之application.properites的failed to convert java.lang.String to java.lang.Integer问题解决

Spring Boot - Font Awesome OTS parsing error: Failed to convert 字体加载失败

jasypt-spring-boot提示Failed to bind properties

jasypt-spring-boot提示Failed to bind properties

Maven中的Spring Boot的web项目报错Failed to configure a DataSource: ‘url‘