开发者

Is it possible to have a property that spans multiple lines in messages.properties?

is it possible to have a property that has multiple lines in messages.properties?

e.g. (my.propert开发者_JS百科y below)

my.property=This property will
be in two lines
my.property.two=Another property

I need this for help texts which I'll be putting in the properties file... and I don't want to do appends.

Any help would be appreciated. Thanks!


Yes, it is possible.

Write them like this (using backslash \ as an escape character):

my.property=This property will \
be in two lines
my.property.two=Another property
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜