經過Spring讀取properties配置文件的信息 Spring 讀取properties

新建一個properties文件叫test.properties內容以下: name=studiozero address=beijing 首先咱們在applicationContext.xml中進行以下配置。須要注意的是,test.properties文件須要和applicationContext.xml放到同一個目錄下 <bean id="propertyConfigurer" class="
相關文章
相關標籤/搜索