Browse Source

Move web-specific FailureAnalyzer to a more focused package

This commit moves PortInUseFailureAnalyzer to o.s.b.web.server as its
current location means the whole general failure analyzer package has
to know about web servers.

Closes gh-45524
pull/45379/head
Stéphane Nicoll 9 months ago
parent
commit
2fa8d38aa7
  1. 5
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/PortInUseFailureAnalyzer.java
  2. 4
      spring-boot-project/spring-boot/src/main/resources/META-INF/spring.factories

5
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/PortInUseFailureAnalyzer.java → spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/PortInUseFailureAnalyzer.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,10 @@ @@ -14,11 +14,10 @@
* limitations under the License.
*/
package org.springframework.boot.diagnostics.analyzer;
package org.springframework.boot.web.server;
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
import org.springframework.boot.diagnostics.FailureAnalysis;
import org.springframework.boot.web.server.PortInUseException;
/**
* A {@code FailureAnalyzer} that performs analysis of failures caused by a

4
spring-boot-project/spring-boot/src/main/resources/META-INF/spring.factories

@ -78,12 +78,12 @@ org.springframework.boot.diagnostics.analyzer.MutuallyExclusiveConfigurationProp @@ -78,12 +78,12 @@ org.springframework.boot.diagnostics.analyzer.MutuallyExclusiveConfigurationProp
org.springframework.boot.diagnostics.analyzer.NoSuchMethodFailureAnalyzer,\
org.springframework.boot.diagnostics.analyzer.NoUniqueBeanDefinitionFailureAnalyzer,\
org.springframework.boot.diagnostics.analyzer.PatternParseFailureAnalyzer,\
org.springframework.boot.diagnostics.analyzer.PortInUseFailureAnalyzer,\
org.springframework.boot.diagnostics.analyzer.UnboundConfigurationPropertyFailureAnalyzer,\
org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer,\
org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer,\
org.springframework.boot.web.context.MissingWebServerFactoryBeanFailureAnalyzer,\
org.springframework.boot.web.embedded.tomcat.ConnectorStartFailureAnalyzer
org.springframework.boot.web.embedded.tomcat.ConnectorStartFailureAnalyzer,\
org.springframework.boot.web.server.PortInUseFailureAnalyzer
# Failure Analysis Reporters
org.springframework.boot.diagnostics.FailureAnalysisReporter=\

Loading…
Cancel
Save