[common]参数实体校验更新,fixIP域名校验

This commit is contained in:
tomsun28
2022-02-09 18:05:07 +08:00
parent be050fbc83
commit c3b1fde42a
2 changed files with 3 additions and 1 deletions

View File

@@ -60,7 +60,6 @@ public class Param {
*/
@ApiModelProperty(value = "参数值", example = "8080", accessMode = READ_WRITE, position = 3)
@Length(max = 255)
@NotNull
private String value;
/**

View File

@@ -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;
}