![JAR search and dependency download from the Maven repository](/logo.png)
JavaServer.SwaggerJacksonModuleRegistrar.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegen Show documentation
Show all versions of codegen Show documentation
This artefact generates other artefacts such as API client, API server out of API Model
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