java - 下面这个EL表达式,可以取出item的值,可是item是封装起来的,属性都是private啊?
大家讲道理
大家讲道理 2017-04-17 16:32:52
0
3
665
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
刘奇

The underlying get method uses reflection. If the name of your get method is changed, that is, the attribute is named name, and the get method to obtain name is getName1, then name1 must be used to obtain the value in el

Ty80

The bottom layer is getName

刘奇

Delete the getNamemethod and try again.
If it cannot be accessed, it means that the getter method of the attribute is automatically called; otherwise, the value of the attribute should be taken directly through reflection.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template