對不起,如果標題不清楚。Java:將多個屬性文件作爲一個加載
我想要做的是加載配置文件「在彼此之上」。
說我有配置#1:
config.property=Something Here
和配置#2:
config.otherproperty=Other Thingy Here
和Java應用程序加載它是這樣的:
config.property=Something Here
config.otherproperty=Other Thingy Here
就像它是一個文件一樣。
我該怎麼做?
對不起,我還不清楚。假設我有兩個文本文件,一個是「hello world」,另一個是「hello nobody」。我怎樣才能讓我的應用程序讀取'hello world hello nobody'好像它是一個文件? – 2014-11-03 02:04:11