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

JavaServer.SwaggerJacksonModuleRegistrar.mustache Maven / Gradle / Ivy

Go to download

This artefact generates other artefacts such as API client, API server out of API Model

There is a newer version: 1.1.1
Show newest version
package {{basePackage}}.util;

import com.fasterxml.jackson.databind.ObjectMapper;

import io.swagger.util.ReferenceSerializationConfigurer;
import springfox.documentation.spring.web.json.JacksonModuleRegistrar;

public class SwaggerJacksonModuleRegistrar implements JacksonModuleRegistrar {

    @Override
    public void maybeRegisterModule(ObjectMapper objectMapper) {
        ReferenceSerializationConfigurer.serializeAsComputedRef(objectMapper);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy