You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider to trim each item in comma-separated configurations #11029
Recently, I have used spring-boot-starter-data-redis and configured its sentinel nodes like "xx.xx.xx.xx:xxxx, xx.xx.xx.xx:xxxx", unfortunately, the application started failed because of the space after the comma. Although the docs point out it is "comma-separated", using space after a comma is more customary, So I think it would be better to trim() those items in comma-separated configurations.
changed the title [-]consider to trim each item in comma-separated configurations[/-][+]Consider to trim each item in comma-separated configurations[/+]on Nov 16, 2017
@philwebb I pushed 5728d96. If you change the description of a key, you have to update the appendix. I did look at #10870 and didn't see a change for the "Comma-separated` bits so I've restored it. If you feel differently we should probably write those rules down on the wiki (I don't mind either way).
Activity
[-]consider to trim each item in comma-separated configurations[/-][+]Consider to trim each item in comma-separated configurations[/+]philwebb commentedon Nov 16, 2017
The binder in 2.0 will automatically trim strings so switching to a
String[]should be enough to fix this going forward.snicoll commentedon Nov 16, 2017
@philwebb Is there a reason why you've used an array for this? I think most properties would use a
List.philwebb commentedon Nov 17, 2017
No specific reason, I just picked it at random. Will re-open to change it to a List.
snicoll commentedon Nov 17, 2017
@philwebb I pushed 5728d96. If you change the description of a key, you have to update the appendix. I did look at #10870 and didn't see a change for the "Comma-separated` bits so I've restored it. If you feel differently we should probably write those rules down on the wiki (I don't mind either way).