当服务器开始工作(Tomcat)时,日志显示以下错误:
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in file [D:\workspace-sts-3.5.0.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\App\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Could not resolve placeholder 'database.driverClassName' in string value "${database.driverClassName}"
答案 0 :(得分:1)
${database.driverClassName}
是驱动程序类名的占位符。您必须在配置文件中指定它,或在应用程序的开头指定它。