我如何将log4j版本从1.2更新到2.16或更高版本?这是我当前在pom.xml文件中(使用maven)对job4j-api和job4j-core进行的操作,但对于仅job4j没有做任何处理
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.1</version>
</dependency>
I can see their current versions and that it is not updated in the shell view here. I tried adding the following snippet
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j</artifactId>
<version>2.17.1</version>
</dependency>
但似乎没有起作用。我需要在哪里更新jar文件吗?任何提示将不胜感激。谢谢。