用的idea檢查了好幾遍
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [C:\Genius\IdeaProjects\spring\target\classes\com\wisdom\dao\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail !? Cause:java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1515)
2019-09-19
昨天晚上,啟動(dòng)類(lèi)配置了包掃描,確定配置了,跟著你的快速入門(mén)小例子寫(xiě)的,yml只配置了數(shù)據(jù)庫(kù)模塊.
今天換了一臺(tái)電腦,我重新寫(xiě)了一遍,竟然可以了,目前還沒(méi)有發(fā)現(xiàn)具體原因
2019-09-18
spring boot啟動(dòng)類(lèi)沒(méi)有配置包掃描
或者yml中沒(méi)有.xml掃描