You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mybatis Annotation 案例的示例代码中,使用的查询语句@Select("SELECT * FROM city ") 是获取city表的所有数据,当该表数据多余一项时,请求接口会报错。
正确的查询SQL应该是 @Select("SELECT * FROM city where city_name= #{cityName}")
The text was updated successfully, but these errors were encountered:
Mybatis Annotation 案例的示例代码中,使用的查询语句
@Select("SELECT * FROM city ")
是获取city表的所有数据,当该表数据多余一项时,请求接口会报错。正确的查询SQL应该是
@Select("SELECT * FROM city where city_name= #{cityName}")
The text was updated successfully, but these errors were encountered: