From 7112382034ae089a191ff4eb03d5a7d6d6d65520 Mon Sep 17 00:00:00 2001
From: Joshi <3040996759@qq.com>
Date: Wed, 3 Jun 2026 15:59:28 +0800
Subject: [PATCH] =?UTF-8?q?build:=20=E6=B7=BB=E5=8A=A0Maven=E5=A4=9A?=
=?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=94=AF?=
=?UTF-8?q?=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
本次提交在pom.xml中新增了dev和prod两个Maven profile配置,用于支持多环境部署:
1. 新增dev开发环境profile,设置为默认激活环境,配置日志级别为debug
2. 新增prod生产环境profile,配置日志级别为warn
3. 移除文件中的多余空白字符,保持代码格式整洁
变更前:项目缺少环境配置,所有环境使用相同配置
变更后:支持通过Maven profile参数切换不同环境配置,便于开发和生产环境分离管理
---
pom.xml | 28 ++++++++++++++++++++++++----
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8123fb86..e3ef6969 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
+
com.ruoyi
ruoyi
3.9.2
@@ -11,7 +11,7 @@
ruoyi
http://www.ruoyi.vip
若依管理系统
-
+
3.9.2
UTF-8
@@ -32,7 +32,27 @@
2.3.1
3.0.2
-
+
+
+ dev
+
+
+ dev
+ debug
+
+
+
+ true
+
+
+
+ prod
+
+ prod
+ warn
+
+
+
@@ -229,4 +249,4 @@
-
\ No newline at end of file
+