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注解就行

这样就解决了:


目录
打赏
0
0
0
0
42
分享
相关文章
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
596 0
|
10月前
|
【Error】DeprecationWarning: executable_path has been deprecated, please pass in a Service object
【Error】DeprecationWarning: executable_path has been deprecated, please pass in a Service object
157 2
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
Error: undefined method `launchd_service_path‘ for xxx
使用brew命令进行启动就报错。
258 0
|
11月前
|
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”?
289 1
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
300 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”?
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
128 0
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
145 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
A component required a bean named xxx that could not be found
A component required a bean named xxx that could not be found
A component required a bean named xxx that could not be found