您的位置:首页 > 编程语言 > Java开发

idea启动springboot项目时报错,如何解决,急! 错误日志如下

2019-06-24 19:22 861 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/qq_43628100/article/details/93514054

2019-06-24 19:20:53.535 ERROR 10924 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :

APPLICATION FAILED TO START

Description:

Parameter 0 of method localContainerEntityManagerFactoryBean in edu.ynmd.cms.config.JpaConfiguration required a single bean, but 2 were found:
- dataSource: defined by method ‘dataSource’ in class path resource [edu/ynmd/cms/config/DataSourceConfig.class]
- EmbeddeddataSource: defined by method ‘dataSource’ in class path resource [edu/ynmd/cms/config/DataSourceConfiguration.class]

Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed

Process finished with exit code 1

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐