I am using jdk 8 and am trying to externalise database connection variables in my java application. There is one way to do this like System.getEnv("key") but I dont need to use this.
Can anyone help to achieve this without Spring.
my configuration,
dbHost: localhost
dbPort: 8091
bucketName: demo_bucket
Kindly provide your inputs.
You can use Properties object in java for inline configuration.
pass
dbConfig
object to your factory that builds your connection object.