Merge branch '2.4.x'
This commit is contained in:
@@ -30,6 +30,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
|
||||
import org.springframework.boot.test.context.FilteredClassLoader;
|
||||
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
|
||||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
|
||||
@@ -61,7 +62,7 @@ class ManagementWebSecurityAutoConfigurationTests {
|
||||
private final WebApplicationContextRunner contextRunner = new WebApplicationContextRunner().withConfiguration(
|
||||
AutoConfigurations.of(HealthContributorAutoConfiguration.class, HealthEndpointAutoConfiguration.class,
|
||||
InfoEndpointAutoConfiguration.class, EnvironmentEndpointAutoConfiguration.class,
|
||||
EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class,
|
||||
EndpointAutoConfiguration.class, WebMvcAutoConfiguration.class, WebEndpointAutoConfiguration.class,
|
||||
SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class));
|
||||
|
||||
@Test
|
||||
|
||||
@@ -101,7 +101,7 @@ public class NettyWebServer implements WebServer {
|
||||
}
|
||||
catch (Exception ex) {
|
||||
PortInUseException.ifCausedBy(ex, ChannelBindException.class, (bindException) -> {
|
||||
if (!isPermissionDenied(bindException.getCause())) {
|
||||
if (bindException.localPort() > 0 && !isPermissionDenied(bindException.getCause())) {
|
||||
throw new PortInUseException(bindException.localPort(), ex);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user