首页 新闻 会员 周边 捐助

# 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り 4年前

@。淑女范erり: 不是啊,已经解决了,莫名的就好了,反正是没扫到配置的原因

沸水煮熟了鱼 4年前
< >
分享
所有回答(1)
0

配置中datasource.url改成datasource.jdbc-url试试

bigdata-page | 园豆:204 (菜鸟二级) | 2020-07-13 14:52
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册