简体   繁体   中英

Application Configuration Properties on Payara (how to read them)

I would like to use Application Configuration Properties that you can configure using the user interface of payara (for example):

应用程序配置属性

My question is: how can I access these values on java code side? Through annotation? Through some sort of context instance maybe? Is it even possible?

I naively tried with System.getProperty with no success.

I don't believe there is a way. An alternative would be to use system properties along with variable substitution via ${} syntax or environment variable via ${ENV.XXX}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM