Skip to content

Commit d005e95

Browse files
committed
Merge branch '3.4.x'
2 parents 5bc6355 + 84612f3 commit d005e95

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,28 @@ public void setTrustedProxies(String trustedProxies) {
11401140

11411141
}
11421142

1143+
/**
1144+
* When to use APR.
1145+
*/
1146+
public enum UseApr {
1147+
1148+
/**
1149+
* Always use APR and fail if it's not available.
1150+
*/
1151+
ALWAYS,
1152+
1153+
/**
1154+
* Use APR if it is available.
1155+
*/
1156+
WHEN_AVAILABLE,
1157+
1158+
/**
1159+
* Never user APR.
1160+
*/
1161+
NEVER
1162+
1163+
}
1164+
11431165
}
11441166

11451167
/**
@@ -1945,26 +1967,4 @@ public enum ForwardHeadersStrategy {
19451967

19461968
}
19471969

1948-
/**
1949-
* When to use APR.
1950-
*/
1951-
public enum UseApr {
1952-
1953-
/**
1954-
* Always use APR and fail if it's not available.
1955-
*/
1956-
ALWAYS,
1957-
1958-
/**
1959-
* Use APR if it is available.
1960-
*/
1961-
WHEN_AVAILABLE,
1962-
1963-
/**
1964-
* Never user APR.
1965-
*/
1966-
NEVER
1967-
1968-
}
1969-
19701970
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/TomcatReactiveWebServerFactoryCustomizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import org.springframework.boot.autoconfigure.web.ServerProperties;
2222
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat;
23-
import org.springframework.boot.autoconfigure.web.ServerProperties.UseApr;
23+
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.UseApr;
2424
import org.springframework.boot.web.embedded.tomcat.TomcatReactiveWebServerFactory;
2525
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
2626
import org.springframework.util.Assert;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/TomcatServletWebServerFactoryCustomizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.apache.catalina.core.AprLifecycleListener;
2020

2121
import org.springframework.boot.autoconfigure.web.ServerProperties;
22-
import org.springframework.boot.autoconfigure.web.ServerProperties.UseApr;
22+
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.UseApr;
2323
import org.springframework.boot.web.embedded.tomcat.ConfigurableTomcatWebServerFactory;
2424
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
2525
import org.springframework.boot.web.server.WebServerFactoryCustomizer;

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import reactor.netty.http.HttpDecoderSpec;
3939

4040
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.Accesslog;
41-
import org.springframework.boot.autoconfigure.web.ServerProperties.UseApr;
41+
import org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat.UseApr;
4242
import org.springframework.boot.context.properties.bind.Bindable;
4343
import org.springframework.boot.context.properties.bind.Binder;
4444
import org.springframework.boot.context.properties.source.ConfigurationPropertySource;

0 commit comments

Comments
 (0)