Where should I keep Database username, password and url, to keep safe and secure as I trying to create secure production environment for my Java project, currently I am using application properties to save DB credential kindly suggest some good and secure way to keep DB credentials.
application.properties
# This should be used only for credentials and other local-only config.
spring.datasource.url = jdbc:postgresql://localhost/database
spring.datasource.username = root
spring.datasource.password = root@123
Where should I keep for secure and production Spring boot project