敲代码遇到了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注解就行
这样就解决了: