配置spring事务时遇到了Cannot resolve bean ‘dataSource‘错误

配置spring事务时遇到了Cannot resolve bean 'dataSource’错误 applicationContext.xml无法解析数据源dataSource 产生的原因是spring的配置文件没有导入,需要手动导入 点击File——》Project structure——》 点击你需要添加的模块的配置文件——》点击+——》勾选上配置文件——》点击OK——》点击apply 这样就
相关文章
相关标签/搜索