log4j:WARN No appenders could be found for logger
提示这个错误是因为log4j的环境没有配置的原因,在src目录下新建一个log4j.properties的文件,黏贴如下内容即可解决。#Configureloggingfortesting:optionallywithlogfile
log4j.rootLogger=WARN,stdout
#log4j.rootLogger=WARN,stdout,logfile
log4j.appender.s