通过org.springframework.web.jsf.FacesContextUtils获得org.springframework.web.context.WebApplicationContext
之后就可以获得spring环境中的beans
具体代码如下:


通过org.springframework.web.jsf.FacesContextUtils获得org.springframework.web.context.WebApplicationContext
之后就可以获得spring环境中的beans
具体代码如下: