@Configuration @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice.class) public class CommonWebMvcConfiguration extends Object
| 构造器和说明 |
|---|
CommonWebMvcConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
CommonWebMvcErrorControllerAdvice |
commonErrorControllerAdvice() |
ResponseMessageWrapperAdvice |
responseMessageWrapper() |
@Bean @ConditionalOnMissingBean public CommonWebMvcErrorControllerAdvice commonErrorControllerAdvice()
@Bean
@ConditionalOnProperty(prefix="hsweb.webflux.response-wrapper",
name="enabled",
havingValue="true",
matchIfMissing=true)
@ConfigurationProperties(prefix="hsweb.webflux.response-wrapper")
public ResponseMessageWrapperAdvice responseMessageWrapper()
Copyright © 2016–2022. All rights reserved.