Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用服务在屏幕控制器中设置一个瞬态属性来检索我需要的信息(这是需要设置属性的实例列表)。问题是使用过滤器后,瞬态属性重置。是预期的吗?应用过滤器后是否有要使用的侦听器?
是的,有这样的听众:
@Inject private Filter filter; @Override public void init(Map<String, Object> params) { filter.setAfterFilterAppliedHandler(() -> { }); }