Skip to content

Commit

Permalink
refactor : uuid replace
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Dec 28, 2023
1 parent 9f6a71c commit f762184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -15,8 +14,6 @@
public class UserSignOutService {

private final RefreshTokenRepository refreshTokenRepository;
private final JwtUtil jwtUtil;

public ResponseEntity<String> execute(HttpServletRequest httpServletRequest) {
String refreshToken = httpServletRequest.getHeader("Authorization-refresh").split(" ")[1].trim();
if (refreshToken.isEmpty()) {
Expand Down

0 comments on commit f762184

Please sign in to comment.