.properties ファイルで構成可能な Java プログラムを使用しています。
しかし、構成キーの 1 つは、複数行の値が必要です。
例:
#proerties file start
key1=value1
desc=a long long line /
next line/
and again next line with a very long desc
/(need to give some new line)
/
something else
from path D://myfile.txt
ご覧のとおり、これは非常に面倒であり、ユーザーはエスケープについて教育を受ける必要があります。
だから、これを解決するためのより良いエレガントな方法があることを知りたいですか?