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 TypeMethodDescriptionvoid
addFormatters
(org.springframework.format.FormatterRegistry registry) springfox.documentation.spring.web.plugins.Docket
api()
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-enablevoid
configureSecurity
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) void
extendMessageConverters
(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer
freemarkerConfig
(javax.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, 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:
configureSecurity
in 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:
extendMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormatters
in 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:
configureDefaultServletHandling
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-