事故:无法根据id进行JS页面删除操作
原因排查:
服务器报错:Optional long parameter ‘id‘ 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.
百度翻译:存在可选的长参数“id”,但由于声明为基元类型,因此无法将其转换为空值。考虑将其声明为对应基元类型的对象包装器。
这,,,太直白了.
直接找哪个地方用到了Long,果然controller中的参数id类型写成了long,改成Long包装类型.
尝试解决第一次:
Long与long的区别:https://blog.csdn.net/qq_39736103/article/details/80389114