Excel导入配置的IP格式校验
This commit is contained in:
@@ -379,7 +379,7 @@ public class ImportExcel {
|
||||
if (valType == String.class){
|
||||
String s = String.valueOf(val.toString());
|
||||
//0.0.0.0表示任意IP的含义
|
||||
if(StringUtils.endsWith(s, ".0") && !s.equals("0.0.0.0")){
|
||||
if(StringUtils.endsWith(s, ".0") && !s.endsWith("0.0.0.0")){
|
||||
val = StringUtils.substringBefore(s, ".0");
|
||||
}else{
|
||||
val = String.valueOf(val.toString());
|
||||
|
||||
Reference in New Issue
Block a user