Cannot invoke "*.mapper.*Mapper.insert(Object)" because "this.*Mapper" is null
一直报Mapper对象为空,是没有注入的原因
添加注解@Autowired即可
@Autowired
private AuthorInfoMapper authorInfoMapper;
Cannot invoke "*.mapper.*Mapper.insert(Object)" because "this.*Mapper" is null
一直报Mapper对象为空,是没有注入的原因
添加注解@Autowired即可
@Autowired
private AuthorInfoMapper authorInfoMapper;