Org.springframework.beans.factory.BeanDefinitionStoreException:Invalid Bean definition with name ' Masterdatasource ' defined in file [C:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\xinghe-mycenter-web\ Web-inf\classes\spring\applicationcontext-dbpool-c3p0.xml]: Could not resolve placeholder ' master.jdbc.url ' in string Value "${master.jdbc.url}"; Nested exception is java.lang.IllegalArgumentException:Could not resolve placeholder ' master.jdbc.url ' in string value "$ {Master.jdbc.url} "
Obviously, the C3P0 connection pool is used in the project. The reason for this error is that the configuration file is missing, and strictly speaking, C3P0 cannot find a configuration item with the name "Master.jdbc.url" from the configuration file. Workaround: If this is a MAVEN Web project, create it without a corresponding directory or file.
Jdbc.properties file contents: In fact, you can call other names, but the extension is immutable.
# DataSource relatedjdbc.driver.class=com.mysql.jdbc.drivermaster.jdbc.url=jdbc:mysql://192.168.1.127:3306/ testcs_dn?useunicode=true&characterencoding=utf-8&zerodatetimebehavior=converttonull& Transformedbitisboolean=true&relaxautocommit=true&useserverpreparedstmts=truemaster.jdbc.username= abcdmaster.jdbc.password=**********
Re-release: It is best to clean,publish usually also no problem, encountered a bad personality situation is not good to say ...
Could not resolve placeholder ' master.jdbc.url ' in string value "${master.jdbc.url}"