문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
java:properties [2012/01/11 15:23] 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:// | ||
| + | * {{: | ||
| + | * '' | ||
| - | ===== XML Properties | + | ==== Properties |
| - | 아래 형식을 따르면 된다. | + | |
| <code xml> | <code xml> | ||
| <?xml version=" | <?xml version=" | ||
| < | < | ||
| < | < | ||
| - | < | + | < |
| - | <entry key="foo"> | + | <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(" | ||
| + | </ | ||