背景:在测试上面这个controller时(status为查询条件Limit,查询status为1/0的所有记录),当用postman发出请求http://localhost:8080/orders/status/1后
,postman下面报错 500 "Internal Server Error" 控制台报错
Optional int parameter 'page' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.
意思是想要的参数是Object类型的,当被声明为原始数据类型时不能被附上null value,
所以把形参里的int改成Integer型即可