log4j:org.apache.log4j.PatternLayout” object is not assignable

log4j报错:
org.apache.log4j.PatternLayout" object is not assignable

#控制台输出
log4j.appender.stdout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.aooender.stdout.layout.ConversionPattern=%5p[%t] - %m%n
修改成
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target = System.out
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern =  %d{ABSOLUTE} %5p %c{1}:%L - %m%n
后问题解决
原因是书本上使用的版本太旧了…