@Configuration
@ConditionalOnProperty(value="sparkbit.commons.rest-error-attributes-enabled",
havingValue="true",
matchIfMissing=true)
@AutoConfigureBefore(value=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class)
public class RestErrorAutoConfiguration
extends Object
| Constructor and Description |
|---|
RestErrorAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
RestErrorAttributes |
restErrorAttributes(org.springframework.beans.factory.ObjectProvider<Messages> messages) |
@Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.servlet.error.ErrorAttributes.class) public RestErrorAttributes restErrorAttributes(org.springframework.beans.factory.ObjectProvider<Messages> messages)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.