Skip to content

rest-client doesn't take deployment profile when reading config #4983

@geoand

Description

@geoand

From the mailing list:

I have the following configuration (Quarkus 0.26.1) in application.properties:

%dev.de.wwu.ulb.registry.RegistrationClient/mp-rest/url=http://wwurdm.uni-muenster.de/registration/api/v1
%dev.de.wwu.ulb.registry.RegistrationClient/mp-rest/scope=javax.inject.Singleton
%prod.de.wwu.ulb.registry.RegistrationClient/mp-rest/url=http://registration-service:8080/registration/api/v1
%prod.de.wwu.ulb.registry.RegistrationClient/mp-rest/scope=javax.inject.Singleton

to distinguish dev and prod profile. However, the rest client won't get injected when starting in prod profile while

de.wwu.ulb.registry.RegistrationClient/mp-rest/url=http://registration-service:8080/registration/api/v1

de.wwu.ulb.registry.RegistrationClient/mp-rest/scope=javax.inject.Singleton

works. Shouldn't the first version work as well?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions