Kaynağa Gözat

fix: z增加order执行顺序

Marko552 4 yıl önce
ebeveyn
işleme
e5fa5f6435

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 369
abi-cloud-qr-platform-server/hs_err_pid31936.log


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 10293
abi-cloud-qr-platform-server/replay_pid31936.log


+ 2 - 0
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/runner/CustomApplicationRunner.java

@@ -4,6 +4,7 @@ import com.abi.qms.platform.infrastructure.util.RSAUtils;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.boot.ApplicationArguments;
 import org.springframework.boot.ApplicationRunner;
+import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Component;
 
 import java.security.interfaces.RSAKey;
@@ -23,6 +24,7 @@ import static com.abi.qms.platform.infrastructure.constant.RsaKey.RSA_PUBLIC_KEY
  */
 @Component
 @Slf4j
+@Order(Integer.MAX_VALUE-1)
 public class CustomApplicationRunner implements ApplicationRunner {
     public static ConcurrentHashMap<String, RSAKey> globalRsaKeyMap = new ConcurrentHashMap<>();
     /**

+ 3 - 1
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/runner/DoCheckTableStoreRunner.java

@@ -9,6 +9,7 @@ import org.apache.commons.lang3.ObjectUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.ApplicationArguments;
 import org.springframework.boot.ApplicationRunner;
+import org.springframework.core.annotation.Order;
 import org.springframework.core.io.Resource;
 import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
 import org.springframework.core.type.classreading.CachingMetadataReaderFactory;
@@ -27,8 +28,9 @@ import java.util.concurrent.atomic.AtomicInteger;
  * @version: 1.0
  * @todo:
  */
-//@Component
+@Component
 @Slf4j
+@Order()
 public class DoCheckTableStoreRunner implements ApplicationRunner {
 
     @Autowired