Loading multiple properties files

后端 未结 6 1732
自闭症患者
自闭症患者 2021-02-12 11:25

Is it possible to stack loaded properties in Java? For instance can I do:

Properties properties = new Properties();

properties.load(new FileInputStream(\"file1.         


        
6条回答
  •  终归单人心
    2021-02-12 12:09

    Actually, yes. You can do this. If any of the properties overlap, the newer loaded property will take place of the older one.

提交回复
热议问题