Class ServletWebApplicationConfig
java.lang.Object
es.kukenan.smartfi.springboot.config.web.servlet.ServletWebApplicationConfig
@ConditionalOnClass(javax.servlet.http.HttpServlet.class)
@Configuration
@Import({WebSecurityConfigurer.class,es.kukenan.smartfi.common.config.AsyncExecutorConfig.class})
public class ServletWebApplicationConfig
extends Object
Master class designed to configure the beans required in a web project, servlet based.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionContext propagation in http filter.JWT authorization filter.Global rest exception handler.
-
Constructor Details
-
ServletWebApplicationConfig
public ServletWebApplicationConfig()
-
-
Method Details
-
restExceptionHandler
@ConditionalOnMissingBean @ConditionalOnClass(org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.class) @Bean public RestExceptionHandler restExceptionHandler()Global rest exception handler. If won't be created if already present in the context.- Returns:
RestExceptionHandler.
-
jwtAuthorizationFilter
JWT authorization filter.- Returns:
JwtAuthorizationFilter.
-
contextPropagationInFilter
Context propagation in http filter.- Returns:
ContextPropagationInFilter.
-