Cannot determine embedded database driver class for database type NONE

@SpringBootApplication
public class ApplicationSocket {
     protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
            return application.sources(ApplicationSocket.class);
        }
        public static void main(String[] args) {
            SpringApplication.run(ApplicationSocket.class,args);
        }
}

这是我上面的代码:其他的配置就配置了一个端口,没有了!

异常:Cannot determine embedded database driver class for database type NONE

草:还要我配置一个数据库链接信息???麻蛋!

老子收了你:

解决办法:在@SpringBootApplication中排除其注入

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})

原文地址:https://www.cnblogs.com/java-synchronized/p/7345876.html