public class ErrorsEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor
EnvironmentPostProcessor which allows to override a particular bean
definition, e.g. registering a bean with an already registered name.
As of Spring Boot 2.1.0+, Bean overriding has been disabled by default to prevent a bean
being accidentally overridden. In order to enable it, we need to set
spring.main.allow-bean-definition-overriding to true.
| Constructor and Description |
|---|
ErrorsEnvironmentPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application)
Enables bean definition overriding.
|
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment,
org.springframework.boot.SpringApplication application)
postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessorenvironment - The environment.application - The spring application.Copyright © 2018. All rights reserved.