(1) Properties
key1=value1
key2=value2 ...
Simple collection of Key-Value pairs.
It's parsed by java.util.Properties class.
It normally stores configuration or localization data. (환경설정에 관한 정보를 저장)
(2) Xml
They have own standard.
<web-app>
<display-name>application</display-name>
<description>AnApplication</description>
<context-param>
<param-name>context-root</param-name>
<param-value>Rootvalue</param-value>
</context-param>
</web-app>
* They both can store date, but XML can store more complex (e.g. hierarchical) data than properties file. XML declares its encoding while .properties does not.
* It's easier to handle properties files than XML.
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon