java.lang.IllegalStateException:Optional int parameter ' Currentspecialindex ' is present but cannot to be translated into a n Ull value due to being declared as a primitive type. Consider declaring it as Object wrapper for the corresponding primitive type.
Spring MVC encapsulation Parameter conjecture
1. If you use an object to accept a parameter spring, you first come out of the new object and assign the returned values to the attribute.
2. If you write a variable directly in the method to accept the foreground parameter if it matches to the variable then the assignment if the foreground does not have a corresponding variable, spring gives the variable a null value instead of the default value for the change amount type.
Public Knowledge findvideobyspecialid (int specialid,int currentpage)
The problem is that I've defined an int type of variable to accept the parameter passing in, but the foreground doesn't pass in the parameter so sping gives a null but NULL does not assign a value to int so throwing an exception can consider using string types or encapsulating parameters as objects or wrapping types of that type.
-Waiting to be verified ....