javax.el.PropertyNotFoundException: Property 'foo' not found on type com.example.Bean

前端 未结 6 2049
-上瘾入骨i
-上瘾入骨i 2020-11-21 23:37

I have results from

Query query = session.createQuery(\"From Pool as p left join fetch p.poolQuestion as s\");

query and I would like to di

6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 00:07

    EL interprets ${class.name} as described - the name becomes getName() on the assumption you are using explicit or implicit methods of generating getter/setters

    You can override this behavior by explicitly identifying the name as a function: ${class.name()} This calls the function name() directly without modification.

提交回复
热议问题