当Mybatis+sql遇到Expected one result (or null) to be returned by selectOne(), but found: 2时
Expectedoneresult(ornull)tobereturnedbyselectOne(),butfound:2Mybatis+sql出现以上问题时,说明sql只允许查询一个值selectOne,但是查询的结果有两条。这时候你就要去你的sql中找到sql语句selecta.idas"id",a.nameas"name",a.original_priceas"original_price"