Optional int parameter 'resourceState' is present but cannot be translated into a null value

Error Log:

java.lang.IllegalStateException: Optional int parameter 'resourceState' 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.

the reason:

 When the receiving layer with a numeric parameter controller resourceState int received, but the parameter is null null, it is given, to the int to Integer

Guess you like

Origin www.cnblogs.com/cailijuan/p/11316485.html