Skip to content
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

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

Closed
wubli opened this issue May 24, 2021 · 0 comments
Assignees
Labels
type: regression A regression from a previous release
Milestone

Comments

@wubli
Copy link

wubli commented May 24, 2021

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 24, 2021
@scottfrederick scottfrederick added type: regression A regression from a previous release and removed status: waiting-for-triage An issue we've not yet triaged labels May 24, 2021
@scottfrederick scottfrederick added this to the 2.5.x milestone May 24, 2021
@scottfrederick scottfrederick changed the title 2.5.0: UnsupportedDataSourcePropertyException: Unable to find sutable method for url UnsupportedDataSourcePropertyException: Unable to find suitable method for url with SQL Server May 24, 2021
@scottfrederick scottfrederick changed the title UnsupportedDataSourcePropertyException: Unable to find suitable method for url with SQL Server UnsupportedDataSourcePropertyException is thrown when attempting to set URL for SQL Server May 24, 2021
@scottfrederick scottfrederick modified the milestones: 2.5.x, 2.5.1 May 24, 2021
@scottfrederick scottfrederick self-assigned this May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

3 participants