the question is that , we implement a JDBC driver, and we want to use DataSourceProperties, however , there is no way to expand the params that we can use the params defined by ourself. It seems that you could supply a param named "customerProperties" which is type for Map<String, String>, just like what you do in DataSourceProperties.Xa. Or Are there some other good ways to realize it?

Comment From: philwebb

You can add @ConfigurationProperties to your bean definition. That's how we do it for auto-configured data sources. For example this will bind spring.datasource.hikari.* properties directly to the data source.

Comment From: jiaohu

You can add @ConfigurationProperties to your bean definition. That's how we do it for auto-configured data sources. For example this will bind spring.datasource.hikari.* properties directly to the data source.

ok! thanks to you. I solved my problem by the way you told to me