Unsatisfied dependency expressed through field ‘baseMapper‘ 原因
Unsatisfied dependency expressed through field ‘baseMapper’ 原因
使用MybatisPlus
後,今天突然出現了莫名的報錯原因:
Unsatisfied dependency expressed through field 'baseMapper'
,看到該報錯名稱一臉懵逼,但是通過字面意思理解,其實就是依賴錯誤,由於本專案是微服務設計模式,因此關於DB的操作都是依賴的另一個服務,按照邏輯而言,也就是說MP的baseMapper
未被加入到IOC容器中,否則不可能會依賴失敗,因此推斷是由於本專案中未將DB服務下的相關元件納入到IOC容器所致,因此將DB服務下的相關【MAPPER元件】納入到IOC容器中,具體操作就是在@ComponentScan
掃描器中加入DB服務下的MAPPER元件包即可,問題解決
相關文章
- Error creating bean with name ‘dataSource‘: Unsatisfied dependency expressed through fieldErrorBeanExpress
- Mybatis - 自定義BaseMapper SQLProvider篇MyBatisAPPSQLIDE
- [Javascript] Circular dependencyJavaScript
- How to find dependency
- xmlrpc walk throughXMLRPC
- The beneficiation equipment industry through the "winter"UI
- java反射——FieldJava反射
- vue 踩坑-This dependency was not foundVue
- Local and Remote Dependency Management (250)REM
- write_through 寫效能下降
- MySQL 之 ORDER BY FIELDMySql
- add field security
- yebis error ---depth of fieldError
- Shared SQL Dependency Management (249)SQL
- TypeScript 裡的 class fieldTypeScript
- tpextbuilder- Displayers[元件]- FieldUI元件
- ABAP指標field symbol!指標Symbol
- Field Parameter的設定
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- Gradle's dependency cache may be corruptGradle
- Through the NBA, clubs players and fans paid their respectsAI
- [轉]Updating Session Variables through GO URLSessionGo
- Interview-Harry Potter walk through matrix.View
- 11-Overview-Field SelectorsView
- Lucene原始碼解析--Field類原始碼
- Exercise 5: Field data acquisition and analysisUI
- 理解ASP.NET Core - [03] Dependency InjectionASP.NET
- 解決Vue中”This dependency was not found”的方法Vue
- Dependency Injection-依賴注入詳解依賴注入
- pod》error:The dependency `` is not used in any concrete targetError
- maven assembly plugin,maven dependency plugin的使用MavenPlugin
- json-lib 的maven dependencyJSONMaven
- 談談軟體專案的dependency
- 科技的力量 - powercast sending power “through the air".ASTAI
- Sell through、存銷比、庫存週轉
- Oracle 10g, Export problem through OEM(轉)Oracle 10gExport
- SAP產品的Field Extensibility
- sqlldr Field in data file exceeds maximum lengthSQL