문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
|
java:properties [2012/01/10 23:12] kwon37xi 새로 만듦 |
java:properties [2018/06/22 08:52] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| - | ====== Java Properties ====== | + | ====== Java Properties |
| + | * [[http:// | ||
| + | |||
| + | ===== Spring Properties Inheritance ===== | ||
| + | * [[https:// | ||
| + | * '' | ||
| + | |||
| + | ===== XML Properties | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * {{: | ||
| + | * '' | ||
| + | |||
| + | ==== Properties XML의 형식 ==== | ||
| + | <code xml> | ||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <entry key=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Improving java.util.properties ===== | ||
| + | * [[http:// | ||
| + | * ${} 방식으로 다른 프라퍼티값 일부 지정 <code java> | ||
| + | Props props = new Props(System.getProperties()); | ||
| + | props.put(" | ||
| + | props.expandVariables(); | ||
| + | |||
| + | // The ${user.home} should be expanded to actual user home dir value. | ||
| + | File dir = new File(props.get(" | ||
| + | </ | ||
| + | |||