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.
任何人都可以向我建议如何org.jboss.seam.contexts在 IR 中初始化上下文以及会话上下文吗?
org.jboss.seam.contexts
为了我的测试目的,我需要这样做。
您需要首先创建一个应用程序上下文并设置属性。
Context appContext = new ApplicationContext(); // Set a value appContext.set("flagvalue", new Object()); // Get a value Contexts.getSessionContext().get("flagvalue");