728x90 Java41 Java의 properties - load 일반적으로 컴파일된 코드 외부에서 간단한 매개변수를 키-값-쌍으로 저장하기 위해 사용java.util.Properties .properties 파일에서 키-값 쌍을 로드하는 예제app.properties ▼version = 1.0name = TestAppdate = 2016-11-12 catalog ▼c1 = filesc2 = imagesc3 = videos- .properties로 파일 명을 짓는게 좋으나, 필수는 아님Properties instance 로 쉽게 load할 수 있다.String rootPath = Thread.currentThread().getContextClassLoader().getResource("").getPath();String appConfigPath = rootPath + .. 2023. 2. 1. 이전 1 ··· 6 7 8 9 다음 728x90