使用Springboot+ bootstrap 开发做项目,在写页面时候出现按钮不展示, 查看页面出现下面的我问题:
解决方案:
在ruoyi-admin模块的pom.xml添加下列代码块,然后清空一下浏览器缓存,后台重新build,即可解决。
<resources>
<resource>
<directory>/externals</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*.woff</exclude>
<exclude>**/*.woff2</exclude>
<exclude>**/*.ttf</exclude>
</excludes>
</resource>
<resource>
<directory>/externals</directory>
<filtering>false</filtering>
<includes>
<include>**/*.woff</include>
<include>**/*.woff2</include>
<include>**/*.ttf</include>
</includes>
</resource>
</resources>