Hi @Anonymous
App settings get injected into the process as an environment variable as a literal value, so there isn't a way to refer to another setting. I don't know much about Payara but if it's possible to construct the connection string through runtime, then you can separate the connection string as separate settings and segment them together on container (app) startup.
If you can't do that and the main concern is avoid storing the password in plain text as an app setting, then one option could be using a key vault value reference.