
강의를 들으면서 유용한 단축키나 정보를 정리한다!!!
기초 환경 설정 중 githubBuilder를 이용해 필요한 oauth 정보를 home에서 텍스트 파일로 만들어서 넘겨주도록 구현한 부분이 있는데 file 클래스를 활용하여, 경로를 지정해서 oauth값을 받을 수 있다면, 다른 yml파일의 변수들도 같은 방식으로 사용 가능하지 않을까?
=> 시간 남을때 조금 더 공부해보자
public static GitHubBuilder fromPropertyFile() throws IOException {
File homeDir = new File(System.getProperty("user.home"));
File propertyFile = new File(homeDir, ".github");
return fromPropertyFile(propertyFile.getPath());
}
public static GitHubBuilder fromPropertyFile(String propertyFileName) throws IOException {
Properties props = new Properties();
FileInputStream in = null;
try {
in = new FileInputStream(propertyFileName);
props.load(in);
} finally {
IOUtils.closeQuietly(in);
}
return fromProperties(props);
}

.forEach(name -> System.out.println(name)); -> .forEach(System.out::println);
public record StudyReview(String reviewer, String review){ }