我想执行我的选择查询,
@查询(value="select*from data o where o.id=:id",nativeQuery=true(
public List findList(Integer id(;
得到非法的参数异常,
位置超出了已声明的序号参数的数目。请记住,序号参数是基于1的!位置:1
我错过了@Param,
@Query(value="select*from data o where o.id=:id",nativeQuery=true(public List findList(@Param("id"(整数id(;
添加上面突出显示的一段代码,问题就解决了。