需要在启动类的@EnableAutoConfiguration或@SpringBootApplication中添加exclude = {DataSourceAutoConfiguration.class},排除此类的autoconfig。启动以后就可以正常运行。
相关文章
- Nacos报错:Error creating bean with name ‘authFilterRegistration‘ defined in class path resource
- springboot启动报:Error creating bean with name 'dataSource' defined in class path resource
- SSH整合启动报错 严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [config/bean-base.xml
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]
- Error creating bean with name 'shiroFilter' defined in class path resource [com/
- BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [
- Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource
- Spring Boot - Error creating bean with name 'dataSource' defined in class path resource