Ciyeako 2018-03-27 11:27 采纳率: 0%
浏览 13180
已结题

Spring boot 引用alibaba.druid的dataSource启动报错

图片说明

报错信息如图所示,麻烦哪位大拿解释下,怎么还会调用tomcat呐
如果您看不到图片的话,报错信息如下:
Failed to execute goal org.springframework.boot:
spring-boot-maven-plugin:1.5.10.RELEASE:run (default-cli) on project SpringBootDemo:
An exception occurred while running. null: InvocationTargetException:
Error creating bean with name 'dataSource' defined in class path resource
[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]:
Factory method 'dataSource' threw exception;
nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException:
Cannot determine embedded database driver class for database type NONE.
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).

  • 写回答

7条回答

  • Fantastic灬Long 2018-03-27 11:43
    关注

    兄弟,你的图片看不见啊。这怎么帮助你!!

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料