Class BaseSpringConfig

java.lang.Object
sk.iway.iwcm.system.spring.BaseSpringConfig
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer, ConfigurableSecurity

@Configuration @EnableWebMvc @EnableAsync @ComponentScan("sk.iway.iwcm.system.spring.components") public class BaseSpringConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, ConfigurableSecurity
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFormatters(org.springframework.format.FormatterRegistry registry)
     
    io.swagger.v3.oas.models.OpenAPI
    OpenAPI info configuration - used by OpenApiRestController
    void
    configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
    jeeff: toto potrebujeme ako default handler na staticke subory, v SpringAppInitializer sa bindne Spring dispatcher na / a on nehandluje css, html atd https://stackoverflow.com/questions/29394493/spring-mvc-configuration-enable
    void
    configureMessageConverters(org.springframework.http.converter.HttpMessageConverters.ServerBuilder builder)
     
    void
    configureSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     
    org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer
    freemarkerConfig(jakarta.servlet.http.HttpServletRequest request)
     

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

    • BaseSpringConfig

      public BaseSpringConfig()
  • Method Details

    • configureSecurity

      public void configureSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Specified by:
      configureSecurity in interface ConfigurableSecurity
      Throws:
      Exception
    • apiInfo

      @Bean public io.swagger.v3.oas.models.OpenAPI apiInfo()
      OpenAPI info configuration - used by OpenApiRestController
      Returns:
      OpenAPI with WebJET API info
    • configureMessageConverters

      public void configureMessageConverters(org.springframework.http.converter.HttpMessageConverters.ServerBuilder builder)
      Specified by:
      configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addFormatters

      public void addFormatters(org.springframework.format.FormatterRegistry registry)
      Specified by:
      addFormatters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • freemarkerConfig

      @Bean public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freemarkerConfig(jakarta.servlet.http.HttpServletRequest request)
    • configureDefaultServletHandling

      public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
      jeeff: toto potrebujeme ako default handler na staticke subory, v SpringAppInitializer sa bindne Spring dispatcher na / a on nehandluje css, html atd https://stackoverflow.com/questions/29394493/spring-mvc-configuration-enable
      Specified by:
      configureDefaultServletHandling in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer