All Downloads are FREE. Search and download functionalities are using the official Maven repository.

systems.fehn.boot.starter.hashids.HashidsWebMvcConfigurer Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package systems.fehn.boot.starter.hashids;

import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class HashidsWebMvcConfigurer implements WebMvcConfigurer {
    private final HashidsProvider provider;

    public HashidsWebMvcConfigurer(final HashidsProvider provider) {
        this.provider = provider;
    }

    @Override
    public void addFormatters(final FormatterRegistry registry) {
        registry.addFormatterForFieldAnnotation(new HashidsAnnotationFormatterFactory(provider));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy