Search in sources :

Example 1 with ExpressionEvaluator

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;
}
Also used : HandlerCorsCustomizer(cn.taketoday.web.registry.HandlerCorsCustomizer) ExpressionEvaluator(cn.taketoday.context.expression.ExpressionEvaluator) MissingBean(cn.taketoday.context.annotation.MissingBean)

Aggregations

MissingBean (cn.taketoday.context.annotation.MissingBean)1 ExpressionEvaluator (cn.taketoday.context.expression.ExpressionEvaluator)1 HandlerCorsCustomizer (cn.taketoday.web.registry.HandlerCorsCustomizer)1