728x90
public List<Event> search(String keyword) {
List<Event> eventList = eventRepository.findByTitleContaining(keyword);
return eventList;
}
만들어진 eventList를 return으로 보냄.
'개념 정리' 카테고리의 다른 글
css에서 요소에 스타일 줄 때 (0) | 2022.08.04 |
---|---|
현재 프론트 jpa 페이지 javascript 정리 개념 풀이 (0) | 2022.08.04 |
Spring RequestBody & ResponseBody (0) | 2022.07.29 |
FilenameUtils, RandomStringUtils -> gradle (0) | 2022.07.22 |
Java < , > == Java 제네릭(Generics)이란? (0) | 2022.07.22 |