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