|  |  |  | 
|---|
|  |  |  | package com.doumee.api.web; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.config.Jwt.JwtTokenUtil; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.springframework.web.context.request.RequestContextHolder; | 
|---|
|  |  |  | import org.springframework.web.context.request.ServletRequestAttributes; | 
|---|
|  |  |  | 
|---|
|  |  |  | return request; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | protected String getToken() { | 
|---|
|  |  |  | Object obj = this.getRequest().getAttribute(JwtTokenUtil.HEADER_KEY); | 
|---|
|  |  |  | return obj != null ? obj.toString() : null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //    protected String getToken() { | 
|---|
|  |  |  | //        Object obj = this.getRequest().getAttribute(JwtTokenUtil.HEADER_KEY); | 
|---|
|  |  |  | //        return obj != null ? obj.toString() : null; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|