Spring Boot – Error creating bean with name ‘dataSource’ defined in class path resource

Looks like the initial problem is with the auto-config.

If you don’t need the datasource, simply remove it from the auto-config process:

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

Edit:
If using @SpringBootApplication in your main class:

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)