报错信息如图所示,麻烦哪位大拿解释下,怎么还会调用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).
兄弟,你的图片看不见啊。这怎么帮助你!!
连接池配置问题,查看项目是否引用了org.apache.tomcat.jdbc.pool.DataSource连接池,并且正确配置。
什么也没有,异常不不显示出来,怎么分析啊
跟TOMCAT的数据源冲突
啥都没有 没法回复你啊
你的数据源初始化出问题了,应该是你的数据源配置出问题了吧,好好检查下你的数据源配置
还是配置问题,可以对照这个查看配置:
https://www.jianshu.com/p/170c34bf86a3