我有一个SpringBoot应用程序,它有两个不同的数据库实现,一个是SQL,一个是NO-SQL (MongoDB)。SQL实现是默认的,我目前没有使用NO-SQL实现。但是,应用程序会尝试连接到MongoDB服务器,如果没有可用的服务器,则会显示错误。required a bean of type 'org.springframework.data.mongodb.core.MongoOperations' that could
我已经从SPRING INITIALIZR创建了一个基本的spring启动应用程序,它依赖于Web、MongoDB和JPA。当我尝试运行springboot应用程序时,我得到了以下异常:***************************Failed to auto-configure a DataSource: