我有一个带有组件类的复合组件:
@FacesComponent("myComponent") // not really necessary I think because I have declared it in faces-config.xml
public class UserHelpPopOver extends UINamingContainer {
@Autowired
private MyBean myTemplate;
// omitted code
}
我怎样才能让 Spring 自动注入这个 bean?:) 当我一直调试它时它是空的。