从报错信息中,我们就可以分析出错误原因是触发了数据源的自动化配置,然而当前项目其实并不需要数据源.查其根源是依赖方提供的API依赖中引用了一些多余的依赖触发了该自动化配置的加载. 如何解决 为了解决上面所述的问题,我们可以用两种方法来解决: 通过外部依赖的修改来解决:通过与依赖方沟通,在对方提供的API依赖中去掉不必要的依赖 通过禁用指定的自动化配置来避免加载不必要的自动化配置,下面列举了禁用的方法: 使用了@EnableAutoConfiguration的时候 1  @EnableAutoCo…
背景 使用Spring Cloud搭建微服务,服务的注册与发现(Eureka)项目启动时报错,错误如下 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could b…
最近自己写了一份代码签入到github,然后拉下来运行报下面的错误 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. -- :: --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAI…
新建了一个springboot项目报一下错误: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class 原因是加入了mybatis依赖而没有指定数据库url属性,解决方式: 1.去除mybatis依赖,即去除 <depen…
最近,配置项目,使用SpringBoot2.2.1,配置mybatis访问db,配好后,使用自定义的数据源.启动发生: APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason…
错误信息入下: 2018-06-23 01:48:05.275 INFO 7104 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2018-06-23 01:48:05.355 INFO 7104 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To di…
使用 由于给前端做分页 在启动消费者的时候遇到了这个问题 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class 由于使用分页依赖 <!--分页依赖--> <dependency> <groupId&g…
报错相关信息: 2019-07-22 17:12:48.971 ERROR 8312 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not…
一.问题如下: Description:    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 未能配置数据源:"url"属性未指定,无法配置嵌入式数据源. Reason:         Failed to determine a suitable driver class. 无法确定合适的驱动程序类别.…
If you haven’t starting working with spring boot yet, you will quickly find that it pulls out all the common configuration from across your applications. Recently I helped in an effort to modularize configuration and worked on creating a spring-boot-…