강의

멘토링

로드맵

Inflearn Community Q&A

n2tjrgns9682's profile image
n2tjrgns9682

asked

Developing Spring and JPA based web applications

Study Opening Notice

AccountPredicates 클래스 질문있습니다.

Written on

·

250

2

안녕하세요.

AccountPredicates클래스에서 태그와 지역정보를 찾는 메소드를 static으로 선언해두신 이유가 궁금해서 질문남깁니다!

생성자 주입을 받지 않고 단순히 아래와 같이 static method로 사용하기 위함인가요??

public static Predicate findByTagsAndZones(Set<Tag> tags, Set<Zone> zones)
AccountPredicates.findByTagsAndZones
thymeleafJPAspringjavaspring-boot

Quiz

66% of people got it wrong. Give it a try!

What is the main reason for implementing notification processing asynchronously?

To ensure the consistency of the notification database

To minimize the response speed and transaction impact of the main service logic

For immediate system stop on notification failure

To ensure that all notifications are processed in a predetermined order

Answer 2

0

n2tjrgns9682님의 프로필 이미지
n2tjrgns9682
Questioner

아하 감사합니다!

0

whiteship님의 프로필 이미지
whiteship
Instructor

네 사실 빈으로 만들고 주입 받아서 써도 되긴하는데요. 이런 경우엔 static 메소드를 사용해도 편리할거 같아서요.

n2tjrgns9682's profile image
n2tjrgns9682

asked

Ask a question