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
相关文章推荐
- IDEA中SpringBoot项目如何多实例启动
- Spring Boot 2.0(七):Spring Boot 如何解决项目启动时初始化资源
- IDEA搭建SpringBoot项目,整合mybatis中出现的错误以及解决办法
- Spring Boot 2.0(七):Spring Boot 如何解决项目启动时初始化资源
- Spring Boot 如何解决项目启动时资源初始化
- IDEA创建SpringBoot项目无法正常启动的问题解决方式及思想
- Spring Boot 如何解决项目启动时初始化资源?
- spring boot 的项目在idea下报错,错误信息如下:
- Mac idea 启动SpringBoot 项目慢解决方法
- Spring Boot 2.0(七):Spring Boot 如何解决项目启动时初始化资源
- spring boot项目IDEA启动报错问题解决
- Idea如何启动spring-boot项目
- 在IDEA下跑gradle构建的SpringBoot项目启动报“CreateProcess error=206, 文件名或扩展名太长”
- IDEA中Spring Boot项目MyBaits提示Invalid bound statement (not found)错误
- 采用maven的聚合,项目拆分、整合boot cloud时,错误的整合思路,如何解决
- spring boot web项目在IDEA下热部署解决办法(四步搞定)
- 如何把springboot项目设置成Windows系统开机启动
- IDEA 启动spring boot 错误:Warning:Unable to make the module: reading, related gradle configuration
- 使用idea启动spring boot项目时遇到The Tomcat connector configured to listen on port 8080 failed to start
- 关于IDEA启动Spring Boot项目出现Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext at j