|
|
@@ -2,18 +2,16 @@ package vip.xiaonuo.common.util;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.core.io.buffer.DataBuffer;
|
|
|
-import org.springframework.http.HttpStatus;
|
|
|
-import org.springframework.http.server.reactive.ServerHttpResponse;
|
|
|
+
|
|
|
+import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
-import reactor.core.publisher.Mono;
|
|
|
import vip.xiaonuo.common.pojo.CommonResult;
|
|
|
-
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import java.nio.charset.StandardCharsets;
|
|
|
+
|
|
|
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
+@RefreshScope
|
|
|
public class AuthUtil {
|
|
|
|
|
|
@Value("${resource.account}")
|