@Insert("update user set token=#{token} where username=#{username}")
void saveToken(@Param("token")String token,@Param("username")String username);

再用insert的mapper接口时候,

要加上@param

 

注解里的查询字段必须和数据库里的相同

相关文章:

  • 2022-12-23
  • 2021-05-12
  • 2021-11-07
  • 2021-12-25
  • 2021-11-05
  • 2022-03-02
  • 2022-12-23
  • 2021-07-09
猜你喜欢
  • 2021-04-05
  • 2021-07-20
  • 2022-12-23
  • 2021-10-13
  • 2021-10-19
  • 2021-05-14
相关资源
相似解决方案