zoukankan      html  css  js  c++  java
  • SpringBoot Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.


    ***************************
    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 suitable jdbc url


    Action:

    Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

    报错原因:

               未能确定合适的jdbc url

    解决方法

        检查你的:application.properties 中的数据库配置是否 少写 多写 

  • 相关阅读:
    使用junit进行单元测试
    初学软件工程.
    初学软件工程
    寻医问药软件
    使用JUnit工具进行单元测试
    软件工程问题
    JUnit进行单元测试
    软件工程学习问题
    单元测试
    软件工程
  • 原文地址:https://www.cnblogs.com/520WANG/p/12482543.html
Copyright © 2011-2022 走看看