‘***.Mapper‘ that could not be found.
'***.Mapper' that could not be found..为什么?①要么你没有!————没有就写呗。写了还找不到,往下看。②要么它找不到!————那就告诉它。Springboot不知道Mapper接口在哪…问题解决:(1)加上@Mapper注解import org.apache.ibatis.annotations.Mapper;@Mapperpublic interface UserMapper { Integer insert(User user );弊端
原创
2021-11-06 17:01:54 ·
5510 阅读 ·
1 评论