Application 실행시 db에 테스트데이터 넣어둘 수 있음
@RestController
@RequiredArgsConstructor
public class MemberController {
private final MemberRepository memberRepository;
@PostConstruct
public void init(){
for(int i=0;i<100;i++){
memberRepository.save(new Member("user" + i, i));
}
}
}