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),然后在启动项目,即可完成