DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class


因为添加了数据库的组件,autoconfig会去读取数据源配置,而我没有配置数据源,就抛异常了,解决方法:不引入相关pom我这里是mybatis相关jar,注释掉,启动正常,或者在启动类上面添加注解:
DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
排除自定注入DataSource相关配置文件的自动装配即可.