오류 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'svc': Error creating bean with name 'boardService': Lookup method resolution failed
오류
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'boardController': Unsatisfied dependency expressed through field 'svc': Error creating bean with name 'boardService': Lookup method resolution failed
내용
public PageInfo<Board> getPage() {
PageInfo<Board> page = new PageInfo<>(getList());
log.info(page.toString());
return page;
}
해결
public PageInfo<Board> getPage() {
PageHelper.startPage(3,5); // 추가
PageInfo<Board> page = new PageInfo<>(getList());
log.info(page.toString());
return page;
}