Springboot启动报错

来源:2-4 表设计与实体类的创建

MrWYY

2019-03-28 10:16

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



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



Process finished with exit code 1


写回答 关注

4回答

  • 小黑程序员
    2019-10-13 15:46:08

    现在的版本基本都是2.1.9,与以前不同。所以必须配置数据库的url等信息,建议先将pom文件当中关于mybatis的注释掉运行。

  • 小龙人哎
    2019-06-02 20:34:57
    @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
  • Realman4311809
    2019-04-07 22:38:45

    pom中先注释掉与mybatis相关的

  • jackXu2017
    2019-03-28 11:05:35

    这个是properties文件里面得数据库url没有配置

SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91499 学习 · 621 问题

查看课程

相似问题