봄에 속성 파일을 순서대로로드 할 수있는 방법이 있습니까? Properties가 Hashtable이고 매핑이 정렬되지 않는다는 것을 이해합니다. Java 기반 솔루션보다는 XML 기반 솔루션을 원합니다. 이상적으로 이것은 외부에서 구성 가능해야합니다.봄에 속성 파일을 순서대로로드하십시오.
Edit: I mean the contents of the properties file should be read and preserved in the same order as in the properties file. Eg: fr.wiki=http://fr.wikipedia.org en.wiki=http://en.wikipedia.org ... If I read the properties file, fr.wiki should be first, en.wiki should be second and so on.
연구를 참조하십시오? 그렇다면 [this] (http://stackoverflow.com/questions/14192373/what-is-property-resolution-order-in-spring-property-placeholder-configurer-with)를 확인하십시오. – Sridhar
사용 사례는 무엇입니까? 왜 주문한 물건이 필요한가요? –
예를 들었습니다. 결국 * .wiki = http : //en.wikipedia.org라고 가정 해 봅시다. 국제화에 사용하고 있습니다. 첫 번째 부분은 기본 정규식 일 수 있습니다. 특정 정규 표현식 앞에 더 넓은 정규 표현식을 사용하고 싶지는 않습니다. – bsd