码迷,mamicode.com
首页 > 编程语言 > 详细

解决 spring boot Failed to decode downloaded font

时间:2020-03-21 15:01:46      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:resource   nbsp   了解   source   fail   work   artifact   ram   src   

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

<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

标签:resource   nbsp   了解   source   fail   work   artifact   ram   src   

原文地址:https://www.cnblogs.com/yachao1120/p/12538978.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!