org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.Object[]] to type [com.jzh.graduation.entity.SysPermission] for value '{1, 權限管理, /sys/permission/**}'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.Integer] to type [com.jzh.graduation.entity.SysPermission]
原因:返回結果應該轉換為對象SysPermission,JPA原生sql寫在SysUserDao下(返回結果轉換為SysUser),返回結果無法轉換,應該寫在SysPermissionDao下。
