spring data jpa 遇到的問題

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]java

緣由:返回結果應該轉換爲對象SysPermission,JPA原生sql寫在SysUserDao下(返回結果轉換爲SysUser),返回結果沒法轉換,應該寫在SysPermissionDao下。spring

相關文章
相關標籤/搜索