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

The jdbc property file reader not trimming the properties for the space at the end [SPR-10622] #15250

Closed
spring-projects-issues opened this issue Jun 4, 2013 · 1 comment
Assignees
Labels
in: core status: declined type: enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 4, 2013

Arvind Rathod opened SPR-10622 and commented

The jdbc property file reader not trimming the properties for the space at the end.
If you add space to at the end of driver class name it start giving exception class no found and driver not found.
Please check for other properties also. e.g. try following,

app.jdbc.driverClassName=com.mysql.jdbc.Driver     
app.jdbc.url=jdbc:mysql://localhost/<data base name>
app.jdbc.username=<uname>
app.jdbc.password=<pwd>

Affects: 3.0.2

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 25, 2013

Phil Webb commented

Could you provide a few more details? How are you injecting these property values?

Most PropertySource implementations intentionally leave property values unchanged and will not trim trailing spaces.

@spring-projects-issues spring-projects-issues added status: declined type: enhancement in: core labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: declined type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants