In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code

An unusual problem we encountered today was that getting the configured properties in jdbc.properties failed to connect to the database.
Without further ado, go straight to the code.
Exception in thread “main” org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; Nested exception is java.sql. SQLExeption: Access denied for user ‘e £e £’@’localhost’ (using password: YES)
Spring has resolved the value of ${username to the value of my computer’s username. Simply change the username of the jdbc.properties and XML to name.
${JDBC. Username} is not the same as ${JDBC. Username}. Yes, you don’t get that weird question by just writing it like this, but it does.
Invalid bean definition with name ‘dataSource’ defined in class path resource [applicationContext.xml]:
Could not resolve placeholder ‘jdbc.driverClassName’ in value “${jdbc.driverClassName}”;
${JDBC. Username} is not resolved by Spring.

Read More: