The problem
If you’re using Spring Boot with Spring Data JPA, you’ve probably got a configuration file like this sitting near your server:
# application.yml
spring:
datasource:
url: jdbc:mysql://mysqldb:3306/mydb
username: root # <-- credentials
password: password123 # <--
If you’re a fan of 12-factor apps, you might draw the app configuration/database credentials from environment variables. Alternately, you might be drawing credentials from your cloud vendor’s secrets manager. In any case, you’re probably using credentials that need to be accessible when the server starts and valid until the server shuts down.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.