Springboot替换banner不管用? | 您所在的位置:网站首页 › resource/b2c1ee824e9416282413ffef7b1fb195.png › Springboot替换banner不管用? |
Springboot替换banner不管用
我们想修改一下Springboot启动的图标却发现,不能替换banner文件的图标了,Springboot替换的banner的方法网上讲的很详细,就是将banner.txt放在resources目录下,我怎么也不能替换,网上都没其他什么方法,我的pom.xml文件和其他人的不太一样,查看Springboot编译后的内容,我发现target中只有application.yml文件,并没有banner.txt,说明我给过滤掉了,没有进行打包 pom中的build配置 src/main/java **/*.properties **/*.xml false src/main/resources **/*.properties **/*.xml **/*.yml **/*.html **/*.js **/*.css **/*.map **/*.jpg **/*.png **/*.ico false我们只需要在**/*.txt即可 src/main/java **/*.properties **/*.xml false src/main/resources **/*.properties **/*.xml **/*.yml **/*.html **/*.js **/*.css **/*.map **/*.jpg **/*.png **/*.CAB **/*.ico **/banner.txt false字符生成图片地址:http://www.network-science.de/ascii/ |
CopyRight 2018-2019 实验室设备网 版权所有 |