com.iiifi.kite.boot.web.reactive.config.KiteWebFluxRegistrations Maven / Gradle / Ivy
package com.iiifi.kite.boot.web.reactive.config;
import lombok.AllArgsConstructor;
import com.iiifi.kite.configuration.KiteProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.boot.autoconfigure.web.reactive.WebFluxRegistrations;
import com.iiifi.kite.boot.web.reactive.version.KiteRequestMappingHandlerMapping;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping;
/**
* webflux 配置 注入
* @author [email protected] 花朝
* @date 2018/8/18 12:59
*/
@Configuration
@AllArgsConstructor
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)
public class KiteWebFluxRegistrations implements WebFluxRegistrations {
private final KiteProperties kiteProperties;
@Override
public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
return new KiteRequestMappingHandlerMapping(kiteProperties);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy