특성 파일의 절대 경로는 어떻게 제공합니까?Java의 특성 파일 읽기
autoamtion_environment_properties = new Properties();
InputStream iStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(("C:\\automation_environment.properties"));
이것은 null pointer exception
입니다.
프로젝트 루트 폴더에이 파일이 있으면 작동하지만 외부에서 액세스해야합니다. 어떤 아이디어가 필요합니까?
감사합니다.