Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
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
liyang
sts网站
Commits
9651a7d7
Commit
9651a7d7
authored
May 22, 2021
by
xivLi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删去utils.uuid下 IdUtils类中 多余的import(同包下的UUID类)
parent
b4317032
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
IdUtils.java
...on/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java
+5
-12
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java
View file @
9651a7d7
package
com
.
ruoyi
.
common
.
utils
.
uuid
;
package
com
.
ruoyi
.
common
.
utils
.
uuid
;
import
com.ruoyi.common.utils.uuid.UUID
;
/**
/**
* ID生成器工具类
* ID生成器工具类
*
*
* @author ruoyi
* @author ruoyi
*/
*/
public
class
IdUtils
public
class
IdUtils
{
{
/**
/**
* 获取随机UUID
* 获取随机UUID
*
*
* @return 随机UUID
* @return 随机UUID
*/
*/
public
static
String
randomUUID
()
public
static
String
randomUUID
()
{
{
return
UUID
.
randomUUID
().
toString
();
return
UUID
.
randomUUID
().
toString
();
}
}
...
@@ -24,8 +20,7 @@ public class IdUtils
...
@@ -24,8 +20,7 @@ public class IdUtils
*
*
* @return 简化的UUID,去掉了横线
* @return 简化的UUID,去掉了横线
*/
*/
public
static
String
simpleUUID
()
public
static
String
simpleUUID
()
{
{
return
UUID
.
randomUUID
().
toString
(
true
);
return
UUID
.
randomUUID
().
toString
(
true
);
}
}
...
@@ -34,8 +29,7 @@ public class IdUtils
...
@@ -34,8 +29,7 @@ public class IdUtils
*
*
* @return 随机UUID
* @return 随机UUID
*/
*/
public
static
String
fastUUID
()
public
static
String
fastUUID
()
{
{
return
UUID
.
fastUUID
().
toString
();
return
UUID
.
fastUUID
().
toString
();
}
}
...
@@ -44,8 +38,7 @@ public class IdUtils
...
@@ -44,8 +38,7 @@ public class IdUtils
*
*
* @return 简化的UUID,去掉了横线
* @return 简化的UUID,去掉了横线
*/
*/
public
static
String
fastSimpleUUID
()
public
static
String
fastSimpleUUID
()
{
{
return
UUID
.
fastUUID
().
toString
(
true
);
return
UUID
.
fastUUID
().
toString
(
true
);
}
}
}
}
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