问题描述:
Cannot invoke “com.**.mapper.**Mapper.insert(Object)“ because “this.**Mapper“ is null
解决办法:
1、注意导包是否正确
import org.apache.ibatis.annotations.Mapper;
@Mapper
2、看是否加入了注解
@Autowired
问题描述:
Cannot invoke “com.**.mapper.**Mapper.insert(Object)“ because “this.**Mapper“ is null
解决办法:
1、注意导包是否正确
import org.apache.ibatis.annotations.Mapper;
@Mapper
2、看是否加入了注解
@Autowired