Open sdavids opened 4 months ago
Thanks for the suggestion. I can see how this is useful in production when, presumably, you're configuring the application name on the JDBC URL. What's the benefit at development time when using Docker Compose? Do you perhaps have multiple apps sharing a compose file and the name makes each app's queries easier to identify?
It makes debugging easier if you have a setup with for example Keycloak, Spring Cloud Gateway, and Spring Cloud Vault all talking to the same Postgres instance provided by the compose file.
Or if you use Sharing services between multiple applications, for example two Spring Boot applications for two bounded contexts using the same Postgres instance but each with their own database.
Spring Boot 3.2.5
Logs
Setup
application.yaml
compose.yaml
Currently one has to explicitly configure the application name via
org.springframework.boot.jdbc.parameters
:⇓