类 | 说明 |
---|---|
HttpContextHolder |
当前会话的HttpServletRequest和HttpServletResponse
|
SpringContextHolder |
Spring BeanFactory持有类,可以通过该类获取Spring容器中的Bean
【注意】
该类是通过Spring启动后回调ApplicationContextAware接口获取Spring容器
备注:如果使用该类的时机在回调该接口之前会收到一个
SpringContextHolder.assertApplicationContext() 异常 |