From 4fc80e6672e178666ddb10719b67e8adae357ff1 Mon Sep 17 00:00:00 2001
From: Star_Chen <1622997479@qq.com>
Date: Tue, 18 Apr 2023 22:42:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E5=AD=90=E5=B7=A5=E7=A8=8B?=
=?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=95=B4=E7=90=86=EF=BC=8Curl=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=EF=BC=8C=E7=BB=9F=E4=B8=80junit=E7=89=88=E6=9C=AC?=
=?UTF-8?q?=E5=8F=B7=E3=80=82=20BaseController=E6=B7=BB=E5=8A=A0=E6=B3=A8?=
=?UTF-8?q?=E9=87=8A=EF=BC=8C=E5=8F=96=E6=B6=88equals=E8=AD=A6=E5=91=8A?=
=?UTF-8?q?=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
len-activiti/pom.xml | 12 +++++-------
len-blog/pom.xml | 13 +++++++------
len-common/pom.xml | 3 +--
len-core/pom.xml | 11 ++++-------
.../src/main/java/com/len/base/BaseController.java | 8 ++++++--
len-sys/pom.xml | 9 ++-------
len-web/pom.xml | 8 +++-----
pom.xml | 10 ++++++++--
8 files changed, 36 insertions(+), 38 deletions(-)
diff --git a/len-activiti/pom.xml b/len-activiti/pom.xml
index 0c11fb5..51ae321 100644
--- a/len-activiti/pom.xml
+++ b/len-activiti/pom.xml
@@ -7,19 +7,18 @@
lenosp-2.0-SNAPSHOT
4.0.0
-
len-activiti
+ jar
len-activiti
- http://maven.apache.org
+ https://gitee.com/zzdevelop/lenosp
UTF-8
- 5.22.0
-
+
org.activiti
@@ -54,7 +53,7 @@
junit
junit
- 4.12
+ ${junit.version}
@@ -62,7 +61,7 @@
com.len
len-sys
- lenosp-2.0-SNAPSHOT
+ ${lenosp.version}
@@ -85,5 +84,4 @@
-
diff --git a/len-blog/pom.xml b/len-blog/pom.xml
index bb19071..14656f6 100644
--- a/len-blog/pom.xml
+++ b/len-blog/pom.xml
@@ -8,9 +8,15 @@
lenosp-2.0-SNAPSHOT
4.0.0
-
len-blog
+ jar
+
+ len-blog
+ https://gitee.com/zzdevelop/lenosp
+
+ UTF-8
+
@@ -21,10 +27,5 @@
com.len
len-sys
-
- junit
- junit
- 4.12
-
\ No newline at end of file
diff --git a/len-common/pom.xml b/len-common/pom.xml
index b10d339..e80f0c4 100644
--- a/len-common/pom.xml
+++ b/len-common/pom.xml
@@ -11,7 +11,6 @@
jar
len-common
-
https://gitee.com/zzdevelop/lenosp
@@ -24,7 +23,7 @@
junit
junit
- 4.11
+ ${junit.version}
test
diff --git a/len-core/pom.xml b/len-core/pom.xml
index 7fe9853..54a204f 100644
--- a/len-core/pom.xml
+++ b/len-core/pom.xml
@@ -7,12 +7,11 @@
lenosp-2.0-SNAPSHOT
4.0.0
-
len-core
-
+ jar
len-core
- http://maven.apache.org
+ https://gitee.com/zzdevelop/lenosp
UTF-8
@@ -22,7 +21,7 @@
junit
junit
- 3.8.1
+ ${junit.version}
test
@@ -30,9 +29,7 @@
javax.mail
mail
- 1.5.0-b01
+ ${mail.version}
-
-
diff --git a/len-core/src/main/java/com/len/base/BaseController.java b/len-core/src/main/java/com/len/base/BaseController.java
index 90d67c0..60a9bb7 100644
--- a/len-core/src/main/java/com/len/base/BaseController.java
+++ b/len-core/src/main/java/com/len/base/BaseController.java
@@ -25,12 +25,16 @@ import com.len.util.MsHelper;
import lombok.extern.slf4j.Slf4j;
+/**
+ * 控制器基础抽象类
+ * @author https://gitee.com/zzdevelop/lenosp 自行补充
+ */
@Slf4j
public abstract class BaseController {
private static boolean isAjaxRequest(HttpServletRequest request) {
String requestedWith = request.getHeader("x-requested-with");
- return requestedWith != null && requestedWith.equalsIgnoreCase("XMLHttpRequest");
+ return "XMLHttpRequest".equalsIgnoreCase(requestedWith);
}
@InitBinder
@@ -41,7 +45,7 @@ public abstract class BaseController {
}
@ExceptionHandler({UnauthorizedException.class, AuthorizationException.class})
- public String authorizationException(HttpServletRequest request, HttpServletResponse response) {
+ public String authorizationException(HttpServletRequest request) {
if (isAjaxRequest(request)) {
Map map = Maps.newHashMap();
map.put("code", "403");
diff --git a/len-sys/pom.xml b/len-sys/pom.xml
index a70b196..03e3e3e 100644
--- a/len-sys/pom.xml
+++ b/len-sys/pom.xml
@@ -7,11 +7,11 @@
lenosp-2.0-SNAPSHOT
4.0.0
-
len-sys
+ jar
len-sys
- http://maven.apache.org
+ https://gitee.com/zzdevelop/lenosp
UTF-8
@@ -22,10 +22,5 @@
com.len
len-core
-
- junit
- junit
- 4.12
-
diff --git a/len-web/pom.xml b/len-web/pom.xml
index d9482f5..e9aed51 100644
--- a/len-web/pom.xml
+++ b/len-web/pom.xml
@@ -8,18 +8,17 @@
4.0.0
len-web
- len-web
- http://maven.apache.org
jar
+ len-web
+ https://gitee.com/zzdevelop/lenosp
-
org.mybatis.generator
mybatis-generator-core
- 1.3.5
+ ${mybatis-generator-core.version}
org.springframework.boot
@@ -42,7 +41,6 @@
com.len
len-blog
- lenosp-2.0-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index ba6542b..5855161 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,6 +8,8 @@
lenosp
pom
lenosp-2.0-SNAPSHOT
+ https://gitee.com/zzdevelop/lenosp
+
org.springframework.boot
spring-boot-starter-parent
@@ -20,13 +22,14 @@
1.8
lenosp-2.0-SNAPSHOT
+ 1.2.8
3.5.3
3.2.0
- 5.1.6
- 1.2.8
+ 5.22.0
1.2.5
2.5.0
2.3.0
+ 5.1.6
2.1.9.RELEASE
1.3.2
@@ -42,6 +45,8 @@
3.7
1.3.2
+ 4.12
+ 1.5.0-b01
4.0.12
1.16.10
2.7.0
@@ -49,6 +54,7 @@
1.2.41
1.7.25
2.0.1.Final
+ 1.3.5
6.0.10.Final
3.0.0
--
Gitee