zoukankan      html  css  js  c++  java
  • 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})

  • 相关阅读:
    5.9上午
    5.4下午
    5.4上午
    5.2上午
    4.19下午
    4.18上午
    4.17下午
    4.17上午
    4.12下午
    4.13下午
  • 原文地址:https://www.cnblogs.com/java-synchronized/p/7345876.html
Copyright © 2011-2022 走看看