dataSource数据源找不到

整合SSM中,spring-mybatis.xml加载jdbc.properties中的driver出了问题,前提是:maven项目,eclipse工具,检查时候没有写错东西等错误。

Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Could not resolve placeholder 'driver' in string value "${driver}";

相信每个人的问题都不是很一样,我经历了一周终于解决了,我的问题是jre System Library版本为1.5,所以出现这个问题,后来改为jre System Library1.8解决了,具体步骤是;configure build path→library.

${driver}这个你定义了嘛?

在你的properties中你是写的driver吗