项目启动出现的问题和解决办法

it2024-01-25  67

Description:

Field homeMapper in com.tamu.tio.service.EventsService required a bean of type ‘com.HomeMapper’ that could not be found.

The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)

出现这个问题的原因是因为启动类扫描不到这个(com.HomeMapper)包 解决办法在HomeMapper加上@Mapper注解就ok了

最新回复(0)