How to store password like sensitive information in application

Hey, I am working on a Spring Boot Application and I want to store some passwords like Database password, etc. How do I store it as I think storing password as plain text in application.properties file is not good