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})

posted @ 2017-08-11 14:42  指针怒草内存栈  阅读(360)  评论(0编辑  收藏  举报