亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

用的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)


正在回答

2 回答

昨天晚上,啟動類配置了包掃描,確定配置了,跟著你的快速入門小例子寫的,yml只配置了數據庫模塊.
今天換了一臺電腦,我重新寫了一遍,竟然可以了,目前還沒有發現具體原因

0 回復 有任何疑惑可以回復我~

spring boot啟動類沒有配置包掃描

或者yml中沒有.xml掃描

0 回復 有任何疑惑可以回復我~
#1

itmk 提問者

解決了,是mysql版本不兼容問題導致的
2019-09-19 回復 有任何疑惑可以回復我~
#2

老猿 回復 itmk 提問者

哦,解決了就好,沒幫上你的忙
2019-09-20 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

用的idea檢查了好幾遍

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號