|
@@ -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<>();
|
|
|
/**
|