@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决办法:在启动类中添加@MapperScan注解,要注意注解后要加上扫描的路径(“com.xxx.xxx”)
例如:
@MapperScan("com.csdc.blog")

@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决办法:在启动类中添加@MapperScan注解,要注意注解后要加上扫描的路径(“com.xxx.xxx”)
例如:
@MapperScan("com.csdc.blog")