Ensure ServerProperties default values does not override
Since ServerProperties had primitive properties for port (in
particular) it was not possible to check when applying those
properties if the user had actually changed the value. This
in turn meant that a custom EmbeddedServletContainerFactory
could not set the default values.
Fixed by making int properties of ServerProperties into
Integer and checking for null before setting on the
container factory.
Fixes gh-84
@ -70,11 +70,11 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer {
@@ -70,11 +70,11 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer {
this.contextPath=contextPath;
}
publicintgetPort(){
publicIntegergetPort(){
returnthis.port;
}
publicvoidsetPort(intport){
publicvoidsetPort(Integerport){
this.port=port;
}
@ -86,11 +86,11 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer {
@@ -86,11 +86,11 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer {
@ -100,10 +100,18 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer {
@@ -100,10 +100,18 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer {