Description:Field contentMapper in worldtolingyidianke.file.service.impl.ContentServiceImpl requir

简介: Description:Field contentMapper in worldtolingyidianke.file.service.impl.ContentServiceImpl requir

敲代码遇到了bug:

Description:
 
Field contentMapper in worldtolingyidianke.file.service.impl.ContentServiceImpl required a bean of type 'worldtolingyidianke.file.mappers.ContentMapper' that could not be found.
 
The injection point has the following annotations:
  - @org.springframework.beans.factory.annotation.Autowired(required=true)
 
 
Action:
 
Consider defining a bean of type 'worldtolingyidianke.file.mappers.ContentMapper' in your configuration.

意思是:

worldtolingyidianke . file . service . impl . contentserviceimpl中的字段contentMapper需要一个类型为“worldtolingyidianke . file . mappers . content mapper”的bean,但找不到该bean。 注入点有以下注释: -@ org . spring framework . beans . factory . annotation . auto wired(required = true) 行动: 请考虑在您的配置中定义“worldtolingyidianke . file . mappers . content mapper”类型的bean。

这里怎样解决:SpringBoot项目中添加@Mapper注解就行

这样就解决了:


相关文章
|
NoSQL Redis
Consider defining a bean of type ‘com.bsj.system.service.RedisService‘ in your configuration
Consider defining a bean of type ‘com.bsj.system.service.RedisService‘ in your configuration
556 0
|
2月前
|
消息中间件 开发工具
【Azure Service Bus】Service Bus SDK 抛出 ERROR c.a.c.a.i.ActiveClientTokenManager - Error is transient. Rescheduling authorization task at interval 1079000 ms.
【Azure Service Bus】Service Bus SDK 抛出 ERROR c.a.c.a.i.ActiveClientTokenManager - Error is transient. Rescheduling authorization task at interval 1079000 ms.
Field userMapper in zero.file.videoProject.service.UserService required a bean of type ‘zero.file.vi
Field userMapper in zero.file.videoProject.service.UserService required a bean of type ‘zero.file.vi
|
5月前
|
Java
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
96 1
Error: undefined method `launchd_service_path‘ for xxx
使用brew命令进行启动就报错。
234 0
|
消息中间件 Java RocketMQ
【Java】Error creating bean with name ‘functionBindingRegistrar‘ defined in class path resource的一种解决方式
【Java】Error creating bean with name ‘functionBindingRegistrar‘ defined in class path resource的一种解决方式
125 0
Field userDao in com.sd.sbmb.service.impl.UserServiceImpl required a bean of type ‘com.sd.sbmb.dao.U
Field userDao in com.sd.sbmb.service.impl.UserServiceImpl required a bean of type ‘com.sd.sbmb.dao.U
199 0
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
|
XML 数据格式
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
104 0
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
|
Java 开发工具
gradle Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.crea
gradle Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.createCrossBuildFileHashCache().
6738 0