前景提要
# spring boot 整合 mybatisplus 版本比较新的项目启动不了
0 悬赏园豆: 5 [待解决问题] 报错信息 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 (no profiles are currently active). 2020-07-12 15:20:44.860 WARN 5760 --- [ main] o.s.boot.SpringApplication : Unable to close ApplicationContext org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springApplicationAdminRegistrar' defined in class path resource [org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available
依赖都有
yml配置
沸水煮熟了鱼 | 初学一级 | 园豆: 197
提问于:2020-07-12 15:33 看看是不是这个问题: https://www.jianshu.com/p/836d455663da – 。淑女范erり 1个月前 @。淑女范erり: 不是啊,已经解决了,莫名的就好了,反正是没扫到配置的原因 – 沸水煮熟了鱼 3周前 显示帮助
使用"Ctrl+Enter"可进行快捷提交,评论支持部分 Markdown 语法:[link](http://example.com) _italic_ **bold** `code`。
< > 分享
分享您的问题
所有回答(1) 0 配置中datasource.url改成datasource.jdbc-url试试 liulianjun | 园豆:202 (菜鸟二级) | 2020-07-13 14:52 编辑文本 预览 上传图片
Ctrl+Enter键快速提交
清除回答草稿
您需要 登录 以后才能回答,未注册用户请先 注册 。