2018-11-08 11:58:57.939  WARN 8916 ---
[  restartedMain] ConfigServletWebServerApplicationContext :
Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException:
 Error creating bean with name 'studentController':
 Unsatisfied dependency expressed through field 'studentMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
 Error creating bean with name 'studentMapper' defined in file
 [E:\newtest\springbootstudy\target\classes\cn\myspringboot\springbootstudy\mapper\StudentMapper.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 [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.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

springBoot UnsatisfiedDependencyException

相关文章: