Rename the properties BasicDataSourceFactory reads

MSAL

BasicDataSourceFactory.createDataSource(Properties) in DBCP 2 ignores maxActive, maxWait and removeAbandoned without a warning, which leaves the pool on its defaults. This renames them in each .properties file that a class calling createDataSource names in a string. Other properties files are left alone, since their keys can be the application's own, such as placeholders in Spring bean definitions.

org.openrewrite.apache.commons.dbcp.MigrateBasicDataSourceFactoryProperties
mod run . --recipe=org.openrewrite.apache.commons.dbcp.MigrateBasicDataSourceFactoryProperties

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.