I am new to spring boot and mysql. I am trying to create an REST API with mysql config in the application.yml file. My yml file is shown below.
datasource:
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/test
username:
password:
jpa:
hibernate.ddl-auto: update
generate-ddl: true
show-sql: true
The problem is that I don't want to put my password in the yaml file. I want to use a key file or a bearer token. I am not sure how I can start with this. Please help. Thanks in Advance :)