Optional int parameter 'categoryId' is present but cannot be translated into a null value due to being declared as a primitive type.
意思是categoryId 参数为空,但是你设置的类型int是非空的,最好设置成integer
报错原因:参数名写错,参数为空
解决办法:参数类型设置成integer 检查参数名是否正确
Optional int parameter 'categoryId' is present but cannot be translated into a null value due to being declared as a primitive type.
报错原因:参数名写错,参数为空
解决办法:参数类型设置成integer 检查参数名是否正确