layui加载时图标不出现前端报错(2种)
在pom.xml的文件中,添加build中的依赖,因为文件经过maven的filter,会破坏font文件的二进制文件格式
第一种
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>*/static/layui/**/*</exclude>

该博客探讨了layui框架在加载时图标不显示的问题,主要原因是maven过滤导致font文件格式破坏。文章详细列举了两种遇到此问题的情况,并提供了相应的解决方案。
最低0.47元/天 解锁文章
3413

被折叠的 条评论
为什么被折叠?



