有没有后端的老哥

查看 69|回复 4
作者:西梦花客   
2023-05-02 21:40:50.408  WARN 24524 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘echartsController‘: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘echartsMapper‘ defined in file [C:\Users\西梦花客\Desktop\echarts port\end\target\classes\com\example\mapper\EchartsMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory‘; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sqlSessionFactory‘ defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘sqlSessionFactory‘ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource‘ defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method ‘dataSource‘ threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2023-05-02 21:40:50.410  
写了一个echars的端口一直报这个错误,有没有懂的帮看看

老哥, 后端

喜欢就去抢啊   
配置不对
Veng   
jdbc是数据库驱动,数据库账号密码错误概率比较大
白月魁   
这不是很明显的告诉你数据库连接的问题嘛
外卖不用券   
jdbc数据库没配置好
您需要登录后才可以回帖 登录 | 立即注册

返回顶部