org.zodiac.autoconfigure.web.ReactivePlatformConverterAutoConfiguration Maven / Gradle / Ivy
package org.zodiac.autoconfigure.web;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.reactive.config.WebFluxConfigurer;
/**
* Platform enum 《-》 String 转换配置。
*
*/
@SpringBootConfiguration
@ConditionalOnWebApplication(type = Type.REACTIVE)
public class ReactivePlatformConverterAutoConfiguration extends AbstractPlatformConverterConfiguration implements WebFluxConfigurer {
@Override
public void addFormatters(FormatterRegistry registry) {
this.registryFormatters(registry);
}
}