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})