Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
啊啊啊我分析了1个小时啊:数据库配置错误竟然会影响tomcat启动,还报了一堆我的Controller的Bean注入异常以及Service的bean全部都异常了,mmp,emmmmm
我的错误原因在这里:
错误的配置xxxxx(少了一个:)
spring.datasource.url=jdbc:mysql///mybatis_01
正确的
spring.datasource.url=jdbc:mysql:///mybatis_01