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
@EnableSwagger2
@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) springfox.documentation.spring.web.plugins.Docketapi()voidconfigureDefaultServletHandling(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-enablevoidconfigureSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) voidextendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurerfreemarkerConfig(javax.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, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, 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
-
api
@Bean public springfox.documentation.spring.web.plugins.Docket api() -
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
extendMessageConvertersin 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(javax.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
-