Commit a1857556 by Spencer Gibb

Put min/max constraints on sidecar.port

parent 802482ff
......@@ -18,6 +18,9 @@ package org.springframework.cloud.netflix.sidecar;
import java.net.URI;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
......@@ -33,6 +36,8 @@ public class SidecarProperties {
private URI homePageUri;
@Max(65535)
@Min(1)
private int port;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment