瀏覽代碼

【CHG】升级日志版本

ZhaoMn 4 年之前
父節點
當前提交
ea5b3c2e31
共有 2 個文件被更改,包括 38 次插入5 次删除
  1. 22 5
      pom.xml
  2. 16 0
      railway-framework/pom.xml

+ 22 - 5
pom.xml

@@ -50,6 +50,8 @@
     <getui-base.version>4.0.0.38</getui-base.version>
     <getui-fastjson.version>1.0.0.7</getui-fastjson.version>
     <protobuf.version>3.19.1</protobuf.version>
+    <log4j.version>2.15.0</log4j.version>
+    <maven-plugin.version>2.6.1</maven-plugin.version>
   </properties>
 
   <!-- 依赖声明 -->
@@ -201,6 +203,25 @@
         <version>${lombok.version}</version>
       </dependency>
 
+      <!-- 打包插件 -->
+      <dependency>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-maven-plugin</artifactId>
+        <version>${maven-plugin.version}</version>
+      </dependency>
+
+      <!-- 日志 -->
+      <dependency>
+        <groupId>org.apache.logging.log4j</groupId>
+        <artifactId>log4j-to-slf4j</artifactId>
+        <version>${log4j.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.logging.log4j</groupId>
+        <artifactId>log4j-api</artifactId>
+        <version>${log4j.version}</version>
+      </dependency>
+
       <!-- 核心模块-->
       <dependency>
         <groupId>com.railway</groupId>
@@ -228,11 +249,7 @@
         <artifactId>railway-business</artifactId>
         <version>${railway.version}</version>
       </dependency>
-      <dependency>
-        <groupId>org.springframework.boot</groupId>
-        <artifactId>spring-boot-maven-plugin</artifactId>
-        <version>2.6.1</version>
-      </dependency>
+
     </dependencies>
   </dependencyManagement>
 

+ 16 - 0
railway-framework/pom.xml

@@ -18,6 +18,12 @@
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-web</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.apache.logging.log4j</groupId>
+          <artifactId>log4j-to-slf4j</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
 
     <!-- SpringBoot 拦截器 -->
@@ -26,6 +32,16 @@
       <artifactId>spring-boot-starter-aop</artifactId>
     </dependency>
 
+    <!-- 日志 -->
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-to-slf4j</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-api</artifactId>
+    </dependency>
+
     <!-- 阿里数据库连接池 -->
     <dependency>
       <groupId>com.alibaba</groupId>