Set Values from Environment variables for appsettings.json in .NetCore application
Usually in spring boot application I set to read the connection string or any similar value from environment variable as below. At the time of application startup, the values will be set and application can read if from application.properties file.