此类问题的解决方法是在repository层接口找到对应的参数加上注解@Param,例如标题中的noteType参数
@Query(value = "SELECT *** FROM *** d WHERE d .noteType=:newTitle")
public List<Object> find(@Param("noteType") Integer noteType);
此类问题的解决方法是在repository层接口找到对应的参数加上注解@Param,例如标题中的noteType参数
@Query(value = "SELECT *** FROM *** d WHERE d .noteType=:newTitle")
public List<Object> find(@Param("noteType") Integer noteType);