Class ResourceAutoConfiguration

java.lang.Object
io.github.tkasozi.ResourceAutoConfiguration
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@ConditionalOnProperty("elf4j.metrics.logging.enabled") @Configuration @EnableWebMvc public class ResourceAutoConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addViewControllers(@NonNull org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
     
    org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
     
    org.springframework.web.servlet.resource.ResourceHttpRequestHandler
     
    org.springframework.web.servlet.ViewResolver
     

    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, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • ResourceAutoConfiguration

      public ResourceAutoConfiguration(@Value("${elf4j.metrics.adminPageName}") String adminPageRoute)
  • Method Details

    • addViewControllers

      public void addViewControllers(@NonNull @NonNull org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
      Specified by:
      addViewControllers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • internalResourceViewResolver

      @Bean public org.springframework.web.servlet.ViewResolver internalResourceViewResolver()
    • el4jLoggerHandlerMapping

      @Bean public org.springframework.web.servlet.handler.SimpleUrlHandlerMapping el4jLoggerHandlerMapping()
    • el4jLoggerRequestHandler

      @Bean public org.springframework.web.servlet.resource.ResourceHttpRequestHandler el4jLoggerRequestHandler()