parent
e7d6bd6ccd
commit
aa83bbee3d
|
@ -121,11 +121,7 @@ class ServletComponentRegisteringPostProcessor
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BeanFactoryInitializationAotContribution processAheadOfTime(ConfigurableListableBeanFactory beanFactory) {
|
public BeanFactoryInitializationAotContribution processAheadOfTime(ConfigurableListableBeanFactory beanFactory) {
|
||||||
return new BeanFactoryInitializationAotContribution() {
|
return (generationContext, beanFactoryInitializationCode) -> {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void applyTo(GenerationContext generationContext,
|
|
||||||
BeanFactoryInitializationCode beanFactoryInitializationCode) {
|
|
||||||
for (String beanName : beanFactory.getBeanDefinitionNames()) {
|
for (String beanName : beanFactory.getBeanDefinitionNames()) {
|
||||||
BeanDefinition definition = beanFactory.getBeanDefinition(beanName);
|
BeanDefinition definition = beanFactory.getBeanDefinition(beanName);
|
||||||
if (Objects.equals(definition.getBeanClassName(),
|
if (Objects.equals(definition.getBeanClassName(),
|
||||||
|
@ -139,8 +135,6 @@ class ServletComponentRegisteringPostProcessor
|
||||||
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
|
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -321,12 +321,12 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry, Ordered {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendError(int status) throws IOException {
|
public void sendError(int status) {
|
||||||
sendError(status, null);
|
sendError(status, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendError(int status, String message) throws IOException {
|
public void sendError(int status, String message) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.hasErrorToSend = true;
|
this.hasErrorToSend = true;
|
||||||
|
|
Loading…
Reference in New Issue