I am trying to figure out a way to provide user and password without hardcoding them on the same server. I need to fetch them through an api.
<!-- MySQL -->
<property name="javax.persistence.jdbc.url"
value="jdbc:mysql://localhost:3306/mydatabase"/>
<!-- Credentials -->
<property name="javax.persistence.jdbc.user"
value="this is user"/>
<property name="javax.persistence.jdbc.password"
value="this is password"/>
Above is how it is being done right now but I want to wire these so anyone who has code access still can't see the user and password. How can I achieve that? I don't have JPA in this project.