I need to save the configuration of the Spring Boot application in the database.
Is it possible to store the database information in the application.properties
What you need is Spring Cloud Config: https://cloud.spring.io/spring-cloud-config/
It will use ad git repository (= database) with all the property files. At startup it will get the latest version, and uses this to launch the application.
When you change the configuration at runtime, it is possible to refresh, without needing to restart!