applicationContext.xml中的配置log4j出错
ref 的值应该是 bean 的名称,你可以先定义一个 bean,并指定 id 或 name,然后在 ref 中指定这个 id 或 name。