Do you think there is a way to get the DropWizard Configuration class to be processed by the ConfigurationClassPostProcessor?
Then it would be possible to have @bean methods on the Configuration class itself that would initialize shared resources like the JDBI instance or a DataSource and make them available for autowiring. As it is now, if you wanted to have your JDBC settings in your YAML file, you'd need to have both a Dropwizard configuration class to receive the values, and a separate spring @configuration class to inject with @value and produce the DataSource.
Do you think there is a way to get the DropWizard Configuration class to be processed by the ConfigurationClassPostProcessor?
Then it would be possible to have @bean methods on the Configuration class itself that would initialize shared resources like the JDBI instance or a DataSource and make them available for autowiring. As it is now, if you wanted to have your JDBC settings in your YAML file, you'd need to have both a Dropwizard configuration class to receive the values, and a separate spring @configuration class to inject with @value and produce the DataSource.