Class PreferencesWebConfiguration

java.lang.Object
org.openwms.core.preferences.app.PreferencesWebConfiguration

@Configuration public class PreferencesWebConfiguration extends Object
A PreferencesWebConfiguration is the microservice Spring web configuration, active by default.
Author:
Heiko Scherrer
  • Constructor Details

    • PreferencesWebConfiguration

      public PreferencesWebConfiguration()
  • Method Details

    • corsFiler

      @Profile("DEV") @Bean jakarta.servlet.Filter corsFiler()
    • preferencesMessageConverterConfigurer

      @Bean org.springframework.web.servlet.config.annotation.WebMvcConfigurer preferencesMessageConverterConfigurer(tools.jackson.databind.json.JsonMapper jsonMapper)
      Register an unrestricted Jackson converter for the custom application/*+json vendor media types. Actuator and Spring HATEOAS bind type-specific ObjectMappers to the shared converter, which makes it serve only those registered types. This converter, appended last, keeps their precedence while still serializing the plain Preference value objects.