1. 程式人生 > >log4j:ERROR Category option " 1 " not a decimal integer.

log4j:ERROR Category option " 1 " not a decimal integer.

 log4j.properties 的配置檔案中:

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

把{1}中的空格去掉。