use of cn.taketoday.context.expression.ExpressionEvaluator in project today-framework by TAKETODAY.
the class CrossOriginConfiguration method handlerCorsCustomizer.
@MissingBean
public HandlerCorsCustomizer handlerCorsCustomizer(CorsProcessor corsProcessor, ApplicationContext context) {
HandlerCorsCustomizer customizer = new HandlerCorsCustomizer(corsProcessor);
ExpressionEvaluator expressionEvaluator = context.getExpressionEvaluator();
customizer.setExpressionEvaluator(expressionEvaluator);
return customizer;
}
Aggregations