-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Harmonize configuration properties that accept a comma-separated list of values #42478
Comments
I had the same thought when briefly looking at #42472. Consistently using |
I think this code probably pre-dates the binder rewrite so +1 to moving to a |
As part of this, I'm going to revise the property descriptions to just say "list" rather than "comma-separated list". My hope is that this will make it a bit more clear that YAML's list syntax can be used. |
Thanks guys for keeping improving Spring/Spring Boot! This change sadly was not fully explained in Spring Boot 3.4 Release Notes. Looking at commit fae3cd1 I understand why my previous setup fails with SpringBoot 3.4.0: private SpringLiquibase springLiquibase(DataSource dataSource, LiquibaseProperties properties) {
var liquibase = new SpringLiquibase();
liquibase.setDataSource(dataSource);
// ^--- the one thing I want to change, everything below is just keeping the default
liquibase.setChangeLog(properties.getChangeLog());
liquibase.setContexts(properties.getContexts());
// ^--- now an ERROR; need to convert list to comma-sep string now
liquibase.setDefaultSchema(properties.getDefaultSchema());
liquibase.setDropFirst(properties.isDropFirst());
liquibase.setShouldRun(properties.isEnabled());
liquibase.setLabelFilter(properties.getLabelFilter());
// ^--- now an ERROR; need to convert list to comma-sep string now
liquibase.setChangeLogParameters(properties.getParameters());
liquibase.setRollbackFile(properties.getRollbackFile());
return liquibase;
} But maybe my way of setting up Liquibase is odd, so I guess I should instead use a |
We don't consider the getters and setters on Boot's
A |
Looking at #42472, I found odd that we'd use a
String
for a property that's declared as a "comma-separated list of". Then I noticed thatMessageSourceProperties
has the same pattern for thebasename
property.Looking at our code base, most of these properties are a
List
or an array, with a few exceptions. I am wondering if we shouldn't harmonize this across the code base so that it's always a collection.The text was updated successfully, but these errors were encountered: