解决 Cannot determine embedded database driver class for database type NONE

刚搭的新项目一启动就报错,一直就知种起不来。各种搜索以后总结两种解决方式。
先看错误:

Description:

Cannot determine embedded database driver class for database type NONE

Action:

If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).

处理方式一:

排除两个默认配置

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

结论:没用

处理方式二: 可行

网上说各种多于的依赖导至的问题,经过排查,确实是由 pagehelper 这个依赖引起的。


    
    
    



    
    
    




    
    
    



    
    
    

总结:程序启动类不需要排除任务一个类,只需要去除引用却可。

其他思路
http://www.cnblogs.com/kmsfan/p/7189626.html

你可能感兴趣的:(解决 Cannot determine embedded database driver class for database type NONE)