I have database configuration in application.properties, like the one below:
spring.database.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/deebee
spring.datasource.username=postgres
spring.datasource.password=shivendra
Somehow, directly writing the username and password seems to be a security concern to me. Is it ok to have a database configuration like the one I have now?
Also, I haven't done anything for database security in my application, does spring boot provides anything for the securing database?