어느 책을 보다가 .properties 파일에 구분자로 = 대신 : 를 기재한 것을 보고
라고 생각하고 열심히 찾아봤다. 그런데 java.util.Properties#load메서드를 찾아보니 = 와 : 가 사용가능하다고 나와있다.
| The key contains all of the characters in the line starting with the first non-white space character and up to, but not including, the first unescaped '=', ':', or white space character other than a line terminator. All of these key termination characters may be included in the key by escaping them with a preceding backslash character; for example, 
 | 
키에 대한 값으로 :, = 또는 공백문자가 아닌 첫번째 문자부터 시작하여 줄의 끝까지 값으로 포함된다.
그러나, 관례라고 하긴 그렇지만 넓게 사용되는 것은
.propertiesserver.port=9090app.info.name=honeymonapp.info.ver=v1.0
.ymlserver.port: 9090app.info:name: honeymonver: v1.0
가 아닐까 생각한다. 그냥 문득…
'Java > Language' 카테고리의 다른 글
| [java] 윈도우즈 환경에서 자바 개발환경 구축하기 (0) | 2018.10.13 | 
|---|---|
| [java] StringJoiner 사용기 (0) | 2018.03.25 | 
| 함수형 인터페이스@FunctionalInterface 는 메서드가 한개밖에 없다며?? (0) | 2015.11.17 | 
| 백명석님의 클린코더스 강의 (0) | 2015.09.25 | 
| 굳이 필요한 게 아니면 enum에 toString() 을 구현하지 않는다. (1) | 2015.04.22 |