use of io.leopard.vhost.RequestMappingInfoBuilderImpl in project leopard by tanhaichao.
the class LeopardHandlerMapping method initApplicationContext.
@Override
protected void initApplicationContext(ApplicationContext context) throws BeansException {
try {
Redis redis = (Redis) context.getBean("sessionRedis");
StoreRedisImpl.setRedis(redis);
} catch (NoSuchBeanDefinitionException e) {
logger.warn("没有配置sessionRedis,不启用分布式session.");
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
super.initApplicationContext(context);
requestMappingInfoBuilder = new RequestMappingInfoBuilderImpl(context);
}
Aggregations