Skip to content

Commit 3595c7a

Browse files
committed
Run ManagementErrorPageCustomizer after core factory customizer
This commit orders ManagementErrorPageCustomizer so that is runs after ManagementWebServerFactoryCustomizer. Previously, they had the same order and could run either way. Closes gh-45728
1 parent d4a3223 commit 3595c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/WebMvcEndpointChildContextConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -128,7 +128,7 @@ public void customize(ConfigurableServletWebServerFactory factory) {
128128

129129
@Override
130130
public int getOrder() {
131-
return 0;
131+
return 10; // Run after ManagementWebServerFactoryCustomizer
132132
}
133133

134134
}

0 commit comments

Comments
 (0)