This commit is contained in:
hiondal
2025-04-09 12:32:48 +09:00
47 changed files with 430 additions and 233 deletions
@@ -18,7 +18,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collection;
import java.util.stream.Collectors;
@Service
@RequiredArgsConstructor
@@ -40,7 +39,7 @@ public class MemberServiceImpl implements MemberService {
// 사용자의 권한 정보 생성
Collection<? extends GrantedAuthority> authorities = member.getRoles().stream()
.map(SimpleGrantedAuthority::new)
.collect(Collectors.toList());
.toList();
return jwtTokenProvider.createToken(member, authorities);
}
+1 -1
View File
@@ -7,7 +7,7 @@ spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DB:member}
username: ${POSTGRES_USER:admin}
password: ${POSTGRES_PASSWORD:Passw0rd}
password: ${POSTGRES_PASSWORD:Hi5Jessica!}
driver-class-name: org.postgresql.Driver
# JPA 설정