Просмотр исходного кода

升级log4j2到2.17.1,防止漏洞风险

RuoYi лет назад: 4
Родитель
Сommit
b6f21f451d
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      pom.xml

+ 14 - 0
pom.xml

@@ -40,6 +40,7 @@
40
         <common-pool.version>2.10.0</common-pool.version>
40
         <common-pool.version>2.10.0</common-pool.version>
41
         <commons-collections.version>3.2.2</commons-collections.version>
41
         <commons-collections.version>3.2.2</commons-collections.version>
42
         <transmittable-thread-local.version>2.12.2</transmittable-thread-local.version>
42
         <transmittable-thread-local.version>2.12.2</transmittable-thread-local.version>
43
+        <log4j2.version>2.17.1</log4j2.version>
43
     </properties>
44
     </properties>
44
 
45
 
45
     <!-- 依赖声明 -->
46
     <!-- 依赖声明 -->
@@ -190,6 +191,19 @@
190
                 <version>${common-pool.version}</version>
191
                 <version>${common-pool.version}</version>
191
             </dependency>
192
             </dependency>
192
 
193
 
194
+            <!-- log4j日志组件 -->
195
+            <dependency>
196
+                <groupId>org.apache.logging.log4j</groupId>
197
+                <artifactId>log4j-api</artifactId>
198
+                <version>${log4j2.version}</version>
199
+            </dependency>
200
+
201
+            <dependency>
202
+                <groupId>org.apache.logging.log4j</groupId>
203
+                <artifactId>log4j-to-slf4j</artifactId>
204
+                <version>${log4j2.version}</version>
205
+            </dependency>
206
+
193
             <!-- 核心模块 -->
207
             <!-- 核心模块 -->
194
             <dependency>
208
             <dependency>
195
                 <groupId>com.ruoyi</groupId>
209
                 <groupId>com.ruoyi</groupId>