开发者

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

开发者 https://www.devze.com 2023-01-16 05:47 出处:网络
is it possible to have a property that has multiple lines in messages.properties? e.g. (my.propert开发者_JS百科y below)

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

精彩评论

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