From 08c6c839858b5712f009a0ff8f82228c674f09da Mon Sep 17 00:00:00 2001 From: seungryeol Date: Fri, 13 Oct 2023 16:56:46 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20dockerfile=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++++ .../server/farmususer/user/util/JwtTokenProvider.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4664102 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM openjdk:11 +ARG JAR_FILE=./build/libs/farmus-user-0.0.1-SNAPSHOT.jar +COPY ${JAR_FILE} app.jar +EXPOSE 8080 +ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file diff --git a/src/main/java/modernfarmer/server/farmususer/user/util/JwtTokenProvider.java b/src/main/java/modernfarmer/server/farmususer/user/util/JwtTokenProvider.java index 2e9e2c8..c3cea8f 100644 --- a/src/main/java/modernfarmer/server/farmususer/user/util/JwtTokenProvider.java +++ b/src/main/java/modernfarmer/server/farmususer/user/util/JwtTokenProvider.java @@ -71,7 +71,7 @@ public String createRereshToken() { // 토큰 생성 public String resolveToken(HttpServletRequest request) { LOGGER.info("[resolveToken] HTTP 헤더에서 Token 값 추출"); - String tokenHeader = request.getHeader("access"); + String tokenHeader = request.getHeader("Authentication"); if (tokenHeader != null && tokenHeader.startsWith("Bearer ")) { return tokenHeader.substring(7);