Package io.jstach.opt.spring.boot.webmvc
Class JStachioWebMvcAutoConfiguration
java.lang.Object
io.jstach.opt.spring.boot.webmvc.JStachioWebMvcAutoConfiguration
- All Implemented Interfaces:
Aware
,ApplicationContextAware
,WebMvcConfigurer
@AutoConfiguration
@AutoConfigureAfter(JStachioAutoConfiguration.class)
public class JStachioWebMvcAutoConfiguration
extends Object
implements WebMvcConfigurer, ApplicationContextAware
MVC AutoConfiguration for JStachio runtime.
- Author:
- agentgt, dsyer
- See Also:
-
Constructor Summary
ConstructorDescriptionJStachioWebMvcAutoConfiguration
(JStachioHttpMessageConverter messageConverter, JStachio jstachio) Configures based on the jstachio found by spring -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptors
(InterceptorRegistry registry) void
configureMessageConverters
(List<HttpMessageConverter<?>> converters) void
setApplicationContext
(ApplicationContext context) 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, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
JStachioWebMvcAutoConfiguration
@Autowired public JStachioWebMvcAutoConfiguration(JStachioHttpMessageConverter messageConverter, JStachio jstachio) Configures based on the jstachio found by spring- Parameters:
messageConverter
- jstachio powered message converterjstachio
- jstachio instance created by Spring
-
-
Method Details
-
configureMessageConverters
- Specified by:
configureMessageConverters
in interfaceWebMvcConfigurer
-
addInterceptors
- Specified by:
addInterceptors
in interfaceWebMvcConfigurer
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-