学无先后,达者为师

网站首页 编程语言 正文

BeanCreationException或NoSuchBeanDefinitionException错误

作者:sunshineshuai 更新时间: 2022-03-15 编程语言
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

```bash
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available

Spring Boot出现以上两种情况,大多数是因为mapper问题,只需要在启动类上加上注解

@MapperScan(“com...mapper”)

原文链接:https://blog.csdn.net/weixin_45657973/article/details/107290209

栏目分类
最近更新