
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
Spring boot 실행하지 않고 따라가고 있다가 ^^;;
실행을 한번 해봤는데요 .
findAllByModifiedAtBeforeOrderByModifiedAtDesc
부분에서 에러가 발생하더라구요 에러 내용은 파라미터 수가 맞지 않다고 나오는것 같은데
service 단에서는
@Transactional(readOnly = true)
public List<Memo> getMemoList() {
LocalDateTime beforeOneDay = LocalDateTime.now().minusDays(1);
LocalDateTime nowDay = LocalDateTime.now();
return memoRepository.findAllByModifiedAtBeforeOrderByModifiedAtDesc(
beforeOneDay,
nowDay
);
}
이렇게 작성을 하였구요 repository 단에서는
public interface MemoRepository extends JpaRepository<Memo, Long> {
List<Memo> findAllByModifiedAtBeforeOrderByModifiedAtDesc(
LocalDateTime beforeOneDay,
LocalDateTime nowDay
);
}
이렇게 작성을 하였습니다. 에러 발생하는 이유가 뭘까요 ??

