第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

一直報(bào)錯(cuò)說(shuō) 找不到bean

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'myBatisCRUDController': Unsatisfied dependency expressed through field 'clothService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clothServiceImpl': Unsatisfied dependency expressed through field 'clothMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clothMapper' defined in file [F:\Project\target\classes\com\abc\mapper\ClothMapper.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 [tk/mybatis/mapper/autoconfigure/MapperAutoConfiguration.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 [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedDataBinder

正在回答

5 回答

解決了嗎?


0 回復(fù) 有任何疑惑可以回復(fù)我~

我也是這個(gè)錯(cuò)

0 回復(fù) 有任何疑惑可以回復(fù)我~

NoClassDefFoundError: org/springframework/boot/bind/RelaxedDataBinder

boot里面找不到包,org.springframework.boot.bind 包已經(jīng)刪掉了,導(dǎo)致RelaxedPropertyResolver這個(gè)方法已經(jīng)不可用了.

<dependency>
??? <groupId>com.alibaba</groupId>
?? <artifactId>druid-spring-boot-starter</artifactId>
?? <version>1.1.0</version>
</dependency>

這個(gè)依賴(lài)刪掉即可~~

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

yindz

刪掉都不行
2019-05-27 回復(fù) 有任何疑惑可以回復(fù)我~

我也啟動(dòng)報(bào)錯(cuò),找不到這個(gè)注入的service的Bean,注解都沒(méi)少,對(duì)著老師的代碼寫(xiě)的,到底在哪配置的bean???

0 回復(fù) 有任何疑惑可以回復(fù)我~

看看少不少注解 @RestController 以及?'myBatisCRUDController'里面的接口上面有沒(méi)有@Autowried ?

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

一直報(bào)錯(cuò)說(shuō) 找不到bean

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)