Difference between equals and colons in a Java properties file

In spring, you may have different property files for customizing messages, so they tend to be something like this:

message.key=text here
another.message.key=another text here

But today I saw in the project that it uses this format:

message.key:text here
another.message.key:another text here

I think this applies to any Java properties file, but what is the difference?

+4
source share
2 answers

If you really talked about standard Java files Properties, there is no difference between the colon and the equal sign. Or you can distinguish the key from its value. In fact, you can even mix them in one file if you want to annoy readers.

+6
source

All Articles