SpringBoot整合Druid监控时删除最下方的广告方法

0)在Maven找到对应的jar文件并且用打开压缩包的方式打开

1)找到druid-1.1.xx.jarsupport/http/resources/js/common.js文件

3)修改common.js的代码

jar包源码
buildFooter : function() {
	var html ='<footer class="footer">'+
		  '    		<divclass="container">'+
		  '<a href="https://render.alipay.com/p/s/taobaonpm_click/druid_banner_click" target="new"><img src="https://render.alipay.com/p/s/taobaonpm_click/druid_banner"></a><br/>' +
	  	  '	powered by <a href="https://github.com/alibaba/" target="_blank">AlibabaTech</a> & <a href="http://www.sandzhang.com/" target="_blank">sandzhang</a> & <a href="http://melin.iteye.com/" target="_blank">melin</a> & <a href="https://github.com/shrekwang" target="_blank">shrek.wang</a>'+
	  	  '			</div>'+
		  ' </footer>';
	$(document.body).append(html);
}
改为
buildFooter : function() {
	var html ='';
	$(document.body).append(html);
}

4)保存一定要保存到压缩包里面更新,不然没用的,如果保存不了可以考虑关闭项目,但最好直接关掉Eclipse(因为我用的Eclipse),然后在启动项目,即可完成

5)QQ:2548841623 VX:N2548841623 个人网站(nieqiang.xyz)

发布了27 篇原创文章 · 获赞 3 · 访问量 2610

猜你喜欢

转载自blog.csdn.net/qq_42426937/article/details/103668159