Check out example codes for "Error creating bean with name 'dataSource' defined in class path resource". It will help you in understanding the concepts better.

Code Example 1

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

Learn ReactJs, React Native from akashmittal.com