springboot中使用WebService时启动报Cannot determine embedded database driver class for database type NONE

今天在跟着前辈们的脚步学习webservice时,启动Springboot项目突然就报这个错了(如图),springboot中使用WebService时启动报Cannot determine embedded database driver class for database type NONE仔细看看没问题,为了刚好的比较我还把前辈的代码下载下来好好看看,发现不是这个的错误,于是我就找到了神奇的度娘问一下,有位前辈说是springboot启动的时候自动注入数据源,在启动类中把@SpringBootApplication注解改为@SpringBootApplication(exclude{DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})禁止springboot自动注入多个数据源

springboot中使用WebService时启动报Cannot determine embedded database driver class for database type NONE
事实证明是有用的,再次启动就好了!