diff --git a/src/main/java/org/bssm/attachit/domain/attachment/service/FileSaveUtil.java b/src/main/java/org/bssm/attachit/domain/attachment/service/FileSaveUtil.java index 1062ae2..cb1b89b 100644 --- a/src/main/java/org/bssm/attachit/domain/attachment/service/FileSaveUtil.java +++ b/src/main/java/org/bssm/attachit/domain/attachment/service/FileSaveUtil.java @@ -18,7 +18,8 @@ public class FileSaveUtil { public String save(MultipartFile file) { try { - String fileName = UUID.randomUUID() + "_" + file.getOriginalFilename(); + String fileName = UUID.randomUUID().toString().replace("-", "") + "_" + file.getOriginalFilename(); + System.out.println(fileProperties.getPath()); Path path = fileProperties.getPath().resolve( Paths.get(fileName) .normalize()); diff --git a/src/main/java/org/bssm/attachit/domain/auth/service/UserSignOutService.java b/src/main/java/org/bssm/attachit/domain/auth/service/UserSignOutService.java index 3a816bc..2ca98d8 100644 --- a/src/main/java/org/bssm/attachit/domain/auth/service/UserSignOutService.java +++ b/src/main/java/org/bssm/attachit/domain/auth/service/UserSignOutService.java @@ -4,7 +4,6 @@ import lombok.RequiredArgsConstructor; import org.bssm.attachit.domain.auth.repository.RefreshTokenRepository; import org.bssm.attachit.global.jwt.exception.TokenNotFoundException; -import org.bssm.attachit.global.jwt.util.JwtUtil; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -15,8 +14,6 @@ public class UserSignOutService { private final RefreshTokenRepository refreshTokenRepository; - private final JwtUtil jwtUtil; - public ResponseEntity execute(HttpServletRequest httpServletRequest) { String refreshToken = httpServletRequest.getHeader("Authorization-refresh").split(" ")[1].trim(); if (refreshToken.isEmpty()) {