Class StaticResourcesWebConfiguration

  • All Implemented Interfaces:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration
    @Profile("prod")
    public class StaticResourcesWebConfiguration
    extends Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)  
      protected org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration appendResourceHandler​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)  
      protected org.springframework.http.CacheControl getCacheControl()  
      protected void initializeResourceHandler​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration resourceHandlerRegistration)  
      • Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • Field Detail

      • RESOURCE_LOCATIONS

        protected static final String[] RESOURCE_LOCATIONS
      • RESOURCE_PATHS

        protected static final String[] RESOURCE_PATHS
    • Constructor Detail

      • StaticResourcesWebConfiguration

        public StaticResourcesWebConfiguration​(tech.jhipster.config.JHipsterProperties jHipsterProperties)
    • Method Detail

      • addResourceHandlers

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

        protected org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration appendResourceHandler​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      • initializeResourceHandler

        protected void initializeResourceHandler​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration resourceHandlerRegistration)
      • getCacheControl

        protected org.springframework.http.CacheControl getCacheControl()