diff --git a/pom.xml b/pom.xml
index 4f4c084..5ab03f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,6 +133,11 @@
spring-boot-starter-tomcat
provided
+
+
+
+
+
com.fasterxml.jackson.core
jackson-databind
@@ -291,7 +296,6 @@
easyexcel
3.1.1
-
diff --git a/src/main/java/com/glxp/udi/ApiAdminApplication.java b/src/main/java/com/glxp/udi/ApiAdminApplication.java
index 0d312c2..404203a 100644
--- a/src/main/java/com/glxp/udi/ApiAdminApplication.java
+++ b/src/main/java/com/glxp/udi/ApiAdminApplication.java
@@ -2,22 +2,17 @@ package com.glxp.udi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.builder.SpringApplicationBuilder;
-import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@SpringBootApplication
-public class ApiAdminApplication extends SpringBootServletInitializer {
+@ComponentScan
+public class ApiAdminApplication {
public static void main(String[] args) {
SpringApplication.run(ApiAdminApplication.class, args);
}
- @Override
- protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
- return builder.sources(ApiAdminApplication.class);
- }
-
}
diff --git a/src/main/java/com/glxp/udi/admin/common/enums/ResultEnum.java b/src/main/java/com/glxp/udi/admin/common/enums/ResultEnum.java
index ce1f8d7..0d03c00 100644
--- a/src/main/java/com/glxp/udi/admin/common/enums/ResultEnum.java
+++ b/src/main/java/com/glxp/udi/admin/common/enums/ResultEnum.java
@@ -8,7 +8,7 @@ import lombok.Getter;
@Getter
public enum ResultEnum {
- SUCCESS(0, "success"),
+ SUCCESS(20000, "success"),
NOT_NETWORK(1, "系统繁忙,请稍后再试。"),
LOGIN_VERIFY_FALL(2, "登录失效"),
PARAM_VERIFY_FALL(3, "参数验证错误"),
diff --git a/src/main/java/com/glxp/udi/admin/common/res/BaseResponse.java b/src/main/java/com/glxp/udi/admin/common/res/BaseResponse.java
index 10b5857..8af7bcb 100644
--- a/src/main/java/com/glxp/udi/admin/common/res/BaseResponse.java
+++ b/src/main/java/com/glxp/udi/admin/common/res/BaseResponse.java
@@ -1,5 +1,6 @@
package com.glxp.udi.admin.common.res;
+import com.glxp.udi.admin.common.enums.ResultEnum;
import lombok.Data;
/**
@@ -11,7 +12,7 @@ import lombok.Data;
public class BaseResponse {
public boolean success() {
- return this.code.equals(20000);
+ return this.code.equals(ResultEnum.SUCCESS.getCode());
}
private Integer code;
diff --git a/src/main/java/com/glxp/udi/admin/common/util/ResultVOUtils.java b/src/main/java/com/glxp/udi/admin/common/util/ResultVOUtils.java
index bf7173e..3863388 100644
--- a/src/main/java/com/glxp/udi/admin/common/util/ResultVOUtils.java
+++ b/src/main/java/com/glxp/udi/admin/common/util/ResultVOUtils.java
@@ -19,7 +19,7 @@ public class ResultVOUtils {
*/
public static BaseResponse success(Object data) {
BaseResponse