ptional 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.
解决方案:
将dao,service,controller中接收参数类型long改为java.Long 类型
原因,long不能为空
而Long类型可以。
@Param("id")long id
改为:
```java
@Param("id")Long id