[common]参数实体校验更新,fixIP域名校验
This commit is contained in:
@@ -60,7 +60,6 @@ public class Param {
|
||||
*/
|
||||
@ApiModelProperty(value = "参数值", example = "8080", accessMode = READ_WRITE, position = 3)
|
||||
@Length(max = 255)
|
||||
@NotNull
|
||||
private String value;
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,9 @@ public class IpDomainUtil {
|
||||
* @return true-yes false-no
|
||||
*/
|
||||
public static boolean validateIpDomain(String ipDomain) {
|
||||
if (ipDomain == null || "".equals(ipDomain)) {
|
||||
return false;
|
||||
}
|
||||
if (LOCALHOST.equalsIgnoreCase(ipDomain)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user