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
569 0
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
|
6月前
|
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”?
121 1
Error: undefined method `launchd_service_path‘ for xxx
使用brew命令进行启动就报错。
239 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
205 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”?
|
关系型数据库 MySQL 数据库
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
425 0
|
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
107 0
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
|
XML 应用服务中间件 数据格式
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
96 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
|
XML 应用服务中间件 Android开发
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘
解决方案:Tomcat警告 [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘