code: @Override
  	protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
  		beanFactory.addBeanPostProcessor(
  				new WebApplicationContextServletContextAwareProcessor(this));
  		beanFactory.ignoreDependencyInterface(ServletContextAware.class);
  		registerWebApplicationScopes();
  	}
docs: Register ServletContextAwareProcessor.
  @see ServletContextAwareProcessor