加载数据源的时候出现了 cannot resolve bean 'dataSource' 的错误,这是因为几个xml 没有关联 ,具体解决如下 解决方案 : 点击这 project structure 点击 test-ssm(这里是博主的一个项目名) 旁边的小方框就可以选中所有了 相关文章: