@Configuration @AutoConfigureBefore(value=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class) @EnableConfigurationProperties(value=HappyWebProperties.class) @ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) public class HappyWebAutoConfiguration extends Object
| 构造器和说明 |
|---|
HappyWebAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.boot.autoconfigure.http.HttpMessageConverters |
fastJsonHttpMessageConverter(HappyWebProperties happyWebProperties,
org.springframework.beans.factory.ObjectProvider<List<FastJsonConfigCustomizer>> fastJsonConfigCustomizerProvider) |
GlobalExceptionHandler |
globalExceptionHandler() |
HappyErrorController |
happyErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes) |
Executor |
happyThreadPoolExecutor(HappyWebProperties happyWebProperties) |
org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer |
jackson2ObjectMapperBuilderCustomizer(HappyWebProperties happyWebProperties,
org.springframework.beans.factory.ObjectProvider<List<Jackson2ConfigCustomizer>> jackson2ConfigCustomizerProvider) |
@Bean @ConditionalOnMissingBean public GlobalExceptionHandler globalExceptionHandler()
@Bean @ConditionalOnMissingBean public HappyErrorController happyErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
@Bean
@ConditionalOnProperty(name="happy.code.web.converter-type",
havingValue="jackson2")
public org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer(HappyWebProperties happyWebProperties,
org.springframework.beans.factory.ObjectProvider<List<Jackson2ConfigCustomizer>> jackson2ConfigCustomizerProvider)
@Bean
@ConditionalOnClass(value={com.alibaba.fastjson.JSON.class,org.springframework.http.converter.HttpMessageConverter.class})
@ConditionalOnProperty(name="happy.code.web.converter-type",
havingValue="fastjson",
matchIfMissing=true)
public org.springframework.boot.autoconfigure.http.HttpMessageConverters fastJsonHttpMessageConverter(HappyWebProperties happyWebProperties,
org.springframework.beans.factory.ObjectProvider<List<FastJsonConfigCustomizer>> fastJsonConfigCustomizerProvider)
@Bean(value="happyThreadPoolExecutor") public Executor happyThreadPoolExecutor(HappyWebProperties happyWebProperties)
Copyright © 2021 HappyCoding. All rights reserved.