Configuration for MicroProfile: how inject list of custom object

Viewed 870

i'm trying to inject a list of object in quarkus but I receive an error "No Converter registered for class ExternalApiParam".

My yaml is:

custom:
  external-api-list:
    - name: example-1
      uri: https://run.mocky.io/v3/55402172-82c3
    - name: example-2
      uri: https://run.mocky.io/v3/13417375-a19c

My config class is:

@ConfigProperties(prefix = "custom")
@Data
public class ExternalApiConfigProperties {

    List<ExternalApiParam> externalApiList;
}

What do I wrong?

1 Answers
Related