IllegalArgumentException: Type cannot be null

前端 未结 4 1690
[愿得一人]
[愿得一人] 2020-12-15 09:35

I am confronting with an issue and it seems that many people encountered it and probably couldn\'t solve it.

I have the following MYSQL stored procedure. This is jus

4条回答
  •  醉梦人生
    2020-12-15 10:09

    Problem seems to be while mapping your results (resulting entity can't be typed).

    Try changing:

    @Procedure("ResourceType.getResourceTypes")
    List getResourceTypes();
    

    to

    @Procedure("ResourceType.getResourceTypes")
    Object[] getResourceTypes();
    

    and remove the resultClasses in your NamedStoredProcedureQuery.

    Hope that helps.

提交回复
热议问题