Skip to content

UnsupportedDataSourcePropertyException is thrown when attempting to set URL for SQL Server #26647

@wubli

Description

@wubli

Spring Boot: 2.5.0
Datasource type: com.microsoft.sqlserver.jdbc.SQLServerDataSource

Spring boot fails to determine setter for url property.

DataSourceBuilder.findSetter(Class<?> type):

Method findSetter(Class<?> type) {
	return ReflectionUtils.findMethod(type, "set" + StringUtils.capitalize(this.name), String.class);
}

will returns null because SQLServerDataSource has setURL setter, which doesn't match setUrl

Metadata

Metadata

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions