Package sk.iway.iwcm.system.spring
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatters(org.springframework.format.FormatterRegistry registry) io.swagger.v3.oas.models.OpenAPIapiInfo()OpenAPI info configuration - used by OpenApiRestControllervoidconfigureDefaultServletHandling(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-enablevoidconfigureMessageConverters(org.springframework.http.converter.HttpMessageConverters.ServerBuilder builder) voidconfigureSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurerfreemarkerConfig(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
configureSecurityin interfaceConfigurableSecurity- 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:
configureMessageConvertersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.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:
configureDefaultServletHandlingin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-