可以使用spring将依赖项注入到jsr168 Portlet中吗?
发布于 2009-09-17 15:38:39
是的--看看spring reference中的portlet chapter。
请注意,您需要实现special spring portlet controller接口,而不是标准portlet。这些控制器以及注入的bean应该在contextConfigLocation参数中指定的spring上下文文件中。我猜通常的applicationContext.xml也能正常工作(如果您注册了spring servlet上下文侦听器)
https://stackoverflow.com/questions/1439550
复制相似问题