报错信息如图所示,麻烦哪位大拿解释下,怎么还会调用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).
Spring boot 引用alibaba.druid的dataSource启动报错
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-