-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5 - rank system #6
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redis 부분은 제가 만들어 놨는데 또 만드신 이유가 있나요????????
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
35e0844
수정했습니다!
this.rankService = rankService; | ||
this.userService = userService; | ||
this.jwtService = jwtService; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Autowired를 쓰는거 보다 클래스에 @requiredargsconstructor로 생성자 생성 할 수 있습니다
수정해주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import com.example.domaserver.domain.user.entity.User; | ||
import java.util.List; | ||
|
||
public interface RankService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
service는 기능을 분리해서 구현해주세요
|
||
|
||
@ServiceWithTransaction | ||
@ServiceWithReadOnlyTransactional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get service는 ReadOnly 씁니다. 두개 붙일 필요 없이 ReadOnly만 남겨주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다!
|
||
public GetRankingServiceImpl(RedisTemplate redisTemplate) { | ||
this.redisTemplate = redisTemplate; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
생성자는 코드 스타일에 맞춰서 어노테이션을 사용해서 만들어주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
@ServiceWithTransaction | ||
@ServiceWithReadOnlyTransactional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get service는 ReadOnly 씁니다. 두개 붙일 필요 없이 ReadOnly만 남겨주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다
@Override | ||
public User findByUsername(String username) { | ||
return userRepository.findByUsername(username) | ||
.orElseThrow(() -> new UsernameNotFoundException("User not found with username: " + username)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom exception을 만들어서 예외처리를 해보는건 어떨까요
📌 개요
Redis를 사용하여 Rank 기능 구현
✨ 작업 내용