log4j.properties 的配置文件中:

log4j.appender.stdout.layout.ConversionPattern =  %d{ABSOLUTE} %5p %c{ 1 }:%L - %m%n

把{1}中的空格去掉。

相关文章: