Solution:
Add (exclude = {DataSourceAutoConfiguration.class})
after @SpringBootApplication of the main startup class to exclude autoconfig of this class:
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
You can start successfully~
Read More:
- [Solved] The version of springcloud must support the current version of springboot, otherwise the startup project will report an error: error starting ApplicationContext
- Error starting ApplicationContext. To display the auto-configuration report re-run your application
- SpringBoot startup error Failed to determine a suitable driver class
- [Solved] Springboot Project Startup Error: Error running XXX. Command line is too long.
- [Solved] Springboot Startup Error: Consider defining a bean of type ‘XXX’ in your configuration.
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- [Solved] Nacos2.1.1 Startup Error: nacos is starting with standalone
- The @RestControllerAdvice annotation does not take effect in the Springboot project
- How to Solve SpringBoot MongoDB MongoAutoConfiguration Startup Error
- New Spring boot startup error Failed to auto-configure a DataSource
- IDEA: How to Solve Springboot Project install Error
- Mybatis error under Springboot project: Invalid bound statement (not found)
- [Solved] Springboot Error creating bean with name ‘dataSource’ defined in class path resource
- Springboot running shows application run failed [How to Solve]
- When starting Vue project: cannot find module ‘webpack cli / bin / config yargs’ error resolution
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js
- Project startup error: outofmemoryerror [How to Solve]
- How to Fix the common Warning Errors after Vue Project Startup
- [Solved] Ant Design Pro Project Startup Error: ChunkError mf-va_remoteEntry umi
- [Solved] SpringBoot Project Start Error: No bean named ‘org.springframework.context.xxxxx.importRegistry‘ available