Mapper返回为NULL的问题(Springboot2.0.4+Mybatis3.4.6+MySQL)
@Repository
@Mapper
public interface UserMapper {
@Select(“SELECT * FROM demo_user WHERE user_id = #{id}”)
public User getUserById(int id);
}
调用userMapper返回null值
application.properties...
原创
2018-09-10 16:14:58 ·
6819 阅读 ·
0 评论