Daniel W.
Daniel W.

Reputation: 103

Datasource details as System properties?

Is it possible to pass the properties of a datasource to quarkus by using System properties or environment variables for example instead of using the application properties file, pass

-Dquarkus.datasource.url=jdbc:mysql://localhost:3306/ib24_booking?useSSL=false

so that the values can be passed differently according to the environment I am in.

Upvotes: 1

Views: 109

Answers (1)

ozkanpakdil
ozkanpakdil

Reputation: 4602

It should work as you said. You can find more details here https://quarkus.io/guides/datasource

Upvotes: 1

Related Questions