[Solved] Springboot Project Startup Error: Error starting ApplicationContext

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: