I'm unable to get lists to autocomplete when writing configuration files. Standard objects work as expected.
I've configured both classes as properties:
@SpringBootApplication
@EnableConfigurationProperties(value = {AppProperties.class, EncoderProperties.class})
public class Application {
public static void main(final String[] args) {
SpringApplication.run(Application.class, args);
}
}
The root of my configuration
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties("application")
public class AppProperties {
private String scanTarget;
private List<EncoderProperties> encoders;
}
Finally, the encoders object
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties("application.encoders")
public class EncoderProperties {
private String name;
private String command;
private String outputExtension;
}
When I try and autocomplete the configuration in the application.yaml file, IntelliJ is seeing it as a nested property, not a list
I've cleaned and built the project a number of times but still unable to get it registering as a list.
What I'm expecting is to be able to add a list of encoders to the application root.
Any suggestions where I've missed something?