问题描述
spring。xml<beanid="userCookieContainer"class="org.apache.http.client.CookieStore"scope="session"><qualifiervalue="userCookie"/><aop:scoped-proxy/></bean>@Autowired(required=true)@Qualifier("userCookieContainer")privatestaticCookieStorecookieStore=newBasicCookieStore();privateHttpContextgetHttpContext(){HttpContextlocalContext=newBasicHttpContext();System.out.println("cookieStore========="+cookieStore);nulllocalContext.setAttribute(ClientContext.COOKIE_STORE,cookieStore);returnlocalContext;}web。xml<listener><listener-class>org.springframework.web.context.request.RequestContextListener</listener-class></listener>
解决方案
解决方案二:
这个问题问得好
解决方案三:
怎么没人吗高手在哪里啊
解决方案四:
该回复于2010-11-01 13:21:32被版主删除
解决方案五:
SOS啊谁知道啊
时间: 2024-11-03 11:33:13