一、该问题的重现步骤是什么?
1. pom文件
com.baomidou dynamic-datasource-spring-boot-starter 2.4.2
2. yaml文件
3.启动类
@EnableScheduling
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) // 加上exclude和不加同样报错 public class Application { public static void main(String[] args) { BladeApplication.run(CommonConstant.APPLICATION_NAME, Application.class, args); } }
项目启动时报错:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-11-11 13:57:10.026 ERROR 15748 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: 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 Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active). Disconnected from the target VM, address: '127.0.0.1:62291', transport: 'socket'
- 热议问题
-
多数据源报错
3
-
大屏导出单独部署无法展示图片
1
-
BladeX 工作流开发平台插件版工作流配置审批人问题
1
-
我有两个nacos环境,测试环境接口放行可以,正式环境不行
2
-
blade-emqx服务中配置的这两个ip是微服务还是emqx中间件所在的ip
1
-
前端无法连通后端
2
-
vue自定义组件表格自动滚动问题
2
-
BladeX对应的在uni-app + vue3小程序中使用BladeX中的sm-crypto sm加密,报错无法使用
1
-
请问流程设计中有多个节点是 自定义流程表达式,只有第一个节点赋值成功,第二个是空的,如下图
1
-
vue-data如何跟bladex结合 多租户的情况下
1
扫一扫访问 Blade技术社区 移动端