<managed-bean><managed-bean-name>goodsController</managed-bean-name><managed-bean-class>web.jsf.GoodsController</managed-bean-class><managed-bean-scope>request</managed-bean-scope><!-- inject service --><managed-property><property-name>goodsService</property-name><value>#{goodsService}</value> <!--注入Spring service --></managed-property></managed-bean>