java - How to bind Spring cloud config values to @ConfigurationProperties object? -
i trying populate @configurationproperties
-annotated class properties yaml file on cloud config server (jhipster registry, specifically).
the application connecting server , reading correct file, when either server or file unavailable, exception either missing host or unexpected empty file.
however, cannot access of properties in file.
i trying populate @configurationproperties
object, of fields null.
additionally, trying use @value of properties in file throws error property placeholders aren't found.
i've set spring.cloud.config.name
, profile
values match format expected according jhipster docs.
the issue turned out erroneous configuration, problem resolved removing special characters application name specified in cloud config bootstrap.yml.
Comments
Post a Comment