我使用的是 Spring 4.XX 并使用以下设置来配置 Log4j。现在正在将它升级到 Spring 5.0.2,其中Log4jConfigurer该类已被删除。我如何在 Spring 5.0.2 中做到这一点?
<bean
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="org.springframework.util.Log4jConfigurer"/>
<property name="targetMethod" value="initLogging"/>
<property name="arguments">
<list>
<value>classpath:log4j.properties</value>
</list>
</property>
</bean>
Run Code Online (Sandbox Code Playgroud)