解决办法(非长久之计,折中)
将该方法插入到main函数中,可以自行打印日志信息了
BasicConfigurator.configure(); //自动快速地使用缺省Log4j环境。原文链接:https://www.cnblogs.com/huxinga/p/6868074.html