Class GeoJsonWebMvcConfigurer
java.lang.Object
org.bremersee.geojson.spring.boot.autoconfigure.web.GeoJsonWebMvcConfigurer
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@ConditionalOnClass(name="org.bremersee.geojson.converter.GeometryConverters")
@ConditionalOnWebApplication(type=SERVLET)
@AutoConfiguration
@AutoConfigureAfter(GeoJsonGeometryFactoryAutoConfiguration.class)
public class GeoJsonWebMvcConfigurer
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
The GeoJSON web mvc configurer.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionGeoJsonWebMvcConfigurer(org.springframework.beans.factory.ObjectProvider<org.bremersee.geojson.GeoJsonGeometryFactory> geometryFactory) Instantiates a new GeoJSON web mvc configurer. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatters(org.springframework.format.FormatterRegistry registry) voidinit()Init.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
GeoJsonWebMvcConfigurer
public GeoJsonWebMvcConfigurer(org.springframework.beans.factory.ObjectProvider<org.bremersee.geojson.GeoJsonGeometryFactory> geometryFactory) Instantiates a new GeoJSON web mvc configurer.- Parameters:
geometryFactory- the geometry factory
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()Init. -
addFormatters
public void addFormatters(@NonNull org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-