更新时间:2021-10-23 01:53:52
如果在访问其属性
If you are sure that bean is alive when you are accessing its property you can fetch it from FacesContext and access its property, but you can't inject a managed bean as property in a normal Java class.
FacesContext
无法访问非托管Bean类内的托管属性吗?