I have been working over the new documentation that @dilipkrish has been putting together for the Swagger 2.0 strategy.
However, I seem to hit a roadblock. When I start my app, my configuration class, annotated with @EnableSwagger2, kicks in. After my Docket instance is created in this class, DocumentationPluginsBootstrapper.onApplicationEvent.(ContextRefreshedEvent contextRefreshedEvent) kicks in to fire off a scanDocumentation call. Eventually, FieldModelPropertyProvider.beanDescription is called, but before FieldModelPropertyProvider.onApplicationEvent, which means FieldModelPropertyProvider.objectMapper is still null. When FieldModelPropertyProvider.beanDescription tries to invoke objectMapper.getSerializationConfig(), the NullPointerException is triggered.
I have been working over the new documentation that @dilipkrish has been putting together for the Swagger 2.0 strategy.
However, I seem to hit a roadblock. When I start my app, my configuration class, annotated with
@EnableSwagger2, kicks in. After my Docket instance is created in this class,DocumentationPluginsBootstrapper.onApplicationEvent.(ContextRefreshedEvent contextRefreshedEvent)kicks in to fire off ascanDocumentationcall. Eventually,FieldModelPropertyProvider.beanDescriptionis called, but beforeFieldModelPropertyProvider.onApplicationEvent, which meansFieldModelPropertyProvider.objectMapperis still null. WhenFieldModelPropertyProvider.beanDescriptiontries to invokeobjectMapper.getSerializationConfig(), theNullPointerExceptionis triggered.