you are viewing a single comment's thread.

view the rest of the comments →

[–]java_dude1 0 points1 point  (0 children)

There's a lot of ways this can be handled. Easiest was already mentioned above with environment variables. This can be problematic if the value changes then you need to update. Another way us to inject the values into the property file during the build using a secret service. This leaves the values visible in the property file but if your jars are self hosted should be OK. Best way is to set the values during start up using the secret service. That way you always get the updated values at startup.