开发者

wildcard into .properties

开发者 https://www.devze.com 2023-02-17 01:11 出处:网络
Does exist any method in witch i can add开发者_开发百科 a wildcard into a properties file, and have the meaning of everything, like a.b.*.c.d=lalalala, or set a regex for all that ends in a.b.c=anythi

Does exist any method in witch i can add开发者_开发百科 a wildcard into a properties file, and have the meaning of everything, like a.b.*.c.d=lalalala, or set a regex for all that ends in a.b.c=anything?


A normal Java properties file doesn't handle this, no. Bear in mind that it's a hashtable really, usually mapping strings to strings.

It sounds like you probably want to create your own class for this - but perhaps you could use a Properties object as a simple way of inserting the data?

0

精彩评论

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