Class WebMvcConfiguration

java.lang.Object
org.mockserver.examples.proxy.web.configuration.WebMvcConfiguration
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @EnableWebMvc @ComponentScan(basePackages="org.mockserver.examples.proxy.web") public class WebMvcConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Author:
jamesdbloom
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    void
    configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
     
    org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer
     
    org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureApiVersioning, configureAsyncSupport, configureContentNegotiation, configureHandlerExceptionResolvers, configureMessageConverters, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • WebMvcConfiguration

      public WebMvcConfiguration()
  • Method Details

    • configureDefaultServletHandling

      public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
      Specified by:
      configureDefaultServletHandling in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • freemarkerConfig

      @Bean public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freemarkerConfig()
    • freeMarkerViewResolver

      @Bean public org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver freeMarkerViewResolver()
    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      Specified by:
      addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer