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:
- New Spring boot startup error Failed to auto-configure a DataSource
- [Solved] Springboot Error creating bean with name ‘dataSource’ defined in class path resource
- Springboot running shows application run failed [How to Solve]
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- SpringBoot startup error Failed to determine a suitable driver class
- [Solved] Springboot Startup Error: Consider defining a bean of type ‘XXX’ in your configuration.
- Two implementation methods of spring boot scan mapper interface class
- Spring-boot Use dubbo Error: ERROR 8404 o.s.boot.SpringApplication:Application run failed
- [Solved] Nacos Cluster startup error: error=‘Cannot allocate memory‘ (errno=12)
- The @RestControllerAdvice annotation does not take effect in the Springboot project
- [Solved] Mycat Startup Error: ERROR Startup failed: Timed out waiting for a signal from the JVM
- [Solved] React Native Red screen Error: Unable to load script from assets
- [Solved] UNABLE TO START SERVLETWEBSERVERAPPLICATIONCONTEXT DUE TO MISSING SERVLETWEBSERVERFACTORY BEAN
- Android Error: META-INF/DEPENDENCIES [How to Solve]
- How to Solve “Error db.num is null” when starting Nacos
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- SSM project interceptor infinite loop error [How to Solve]
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- [Solved] MYSQLD: Can‘t create directory ‘/usr/local/mysql/data/’(Errcode:2 -No such file or directory)
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings