关于NoSuchBeanDefinitionException: No bean named 'xxxx' is defined问题解决

org.springframework.beans.factory.BeanInitializationException: Could not process key 'jdbc.url' in PropertyOverrideConfigurer;
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jdbc' is defined


错误原因在于name与c3p0的id不一致

把jdbc修改成dataSource运行正常!


汇总:每种数据源都有自己的db.properties配置文件的书写方式

参考技术文章:https://blog.csdn.net/MrZero404/article/details/73432724

猜你喜欢

转载自blog.csdn.net/zdb292034/article/details/81007426
今日推荐