zoukankan      html  css  js  c++  java
  • Debug

    Error log

    2019-12-07 22:33:03.959 ERROR 3760 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
    
    ***************************
    APPLICATION FAILED TO START
    ***************************
    
    Description:
    
    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
    
    Reason: Failed to determine a suitable driver class
    

    Solution

    在SpringBootApplication后加(exclude=DataSourceAutoConfiguration.class),原因是加载了数据库依赖而没有写配置文件

    /**
     * starter of spring boot
     */
    @SpringBootApplication(exclude=DataSourceAutoConfiguration.class)
    public class DemoApplication {
    
    	public static void main(String[] args) {
    	    SpringApplication.run(DemoApplication.class, args);
    	}
    
    }
    

      

      

  • 相关阅读:
    学校的SQLServer的笔记
    Javaの集合学习
    XML的学习
    Java中学校没学过的东西
    MySQL的学习
    牛顿法及其收敛性
    c++编码规范
    C++标准库
    MATLAB编程技巧
    Matlab学习记录(函数)
  • 原文地址:https://www.cnblogs.com/frankcui/p/12003782.html
Copyright © 2011-2022 走看看