Correctly using Log4jConfigurer in Spring
问题 In our application, we decided to name the log4j configuration file as a custom name to avoid inadvertent loading of the default file from another jar. To configure this, we use org.springframework.util.Log4jConfigurer to specify the log4j location. <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="targetClass"> <value>org.springframework.util.Log4jConfigurer</value> </property> <property name="targetMethod"> <value>initLogging</value> <