‘dataSource’: Invocation of init method failed;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’: Invocation of init method failed; nested exception is java.lang.NullPointerException
出现这个错误看看是不是导入多了启动器,比如:druid-spring-boot2-starter,开启自动配置程序发现没有dataSource(数据库驱动,因为springboot不知道我们使用的什么数据库),所以报空指针异常;