Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-validation-starter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangfukexing
byit-validation-starter
Commits
68610c0c
Commit
68610c0c
authored
Jan 07, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改校验实现
parent
c7312343
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
pom.xml
pom.xml
+12
-0
ValidationUtil.java
src/main/java/com/byit/utils/ValidationUtil.java
+2
-2
No files found.
pom.xml
View file @
68610c0c
...
@@ -40,4 +40,15 @@
...
@@ -40,4 +40,15 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<distributionManagement>
<repository>
<id>
releases
</id>
<url>
http://10.0.120.2/repository/maven-releases/
</url>
</repository>
<snapshotRepository>
<id>
snapshots
</id>
<url>
http://10.0.120.2/repository/maven-snapshots/
</url>
</snapshotRepository>
</distributionManagement>
</project>
</project>
\ No newline at end of file
src/main/java/com/byit/utils/ValidationUtil.java
View file @
68610c0c
...
@@ -97,13 +97,13 @@ public class ValidationUtil {
...
@@ -97,13 +97,13 @@ public class ValidationUtil {
}
}
/**
/**
* 检验表达式
* 检验表达式
为true报错
* @param value
* @param value
* @param errorMessage
* @param errorMessage
*/
*/
public
static
void
isTrueValidation
(
boolean
value
,
String
...
errorMessage
){
public
static
void
isTrueValidation
(
boolean
value
,
String
...
errorMessage
){
String
message
=
errorMessageGenerate
(
"isTrueValidation"
,
"value not true"
);
String
message
=
errorMessageGenerate
(
"isTrueValidation"
,
"value not true"
);
if
(
!
ValidationAdaptation
.
isTrueValidation
(
value
)){
if
(
ValidationAdaptation
.
isTrueValidation
(
value
)){
throw
new
DataValidationException
(
message
);
throw
new
DataValidationException
(
message
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment