I'm trying to inject a list of custom Config Properties that I created in my application.properties file into a Controller. I am getting a `java.lang.IllegalArgumentException: Could not resolve placeholder 'custom.resource' in value "#{${custom.resource}}"` I have also tried injecting it as follows: `@Value("${custom.resource}"`

Here is my ConfigurationProperty class:
 import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.context.annotation.Configuration;

```
import lombok.Data;

@Configuration
@ConfigurationProperties(prefix = "custom")
public class ConfigProperties {

    @Data
    public static class Resource {

        private String description;

        private String category;

        private String URL;

        private Boolean PDF;
    }
}

```

My getter and setter methods are generated by Lombok

here is how I have my properties laid out:

```
custom.resource.description[6]=Description
custom.resource.category[6]=the-category
custom.resource.url[6]=somelink.com
custom.resource.pdf[6]=false

custom.resource.description[7]=Description
custom.resource.category[7]=the-category
custom.resource.url[7]=somelink.com
custom.resource.pdf[7]=false

```

I am not sure if what I am doing is just not possible and if there is another way I should be going about it or what. Any guidance would be great