Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Q
queueForTicket_bl
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
mengmeng
queueForTicket_bl
Commits
75556489
Commit
75556489
authored
Sep 29, 2022
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 更新 prod 环境
2. update MD5.java
parent
ee9b130f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
application-dev.yml
hmit-admin/src/main/resources/application-dev.yml
+1
-1
MD5.java
hmit-common/src/main/java/io/hmit/common/utils/MD5.java
+0
-5
No files found.
hmit-admin/src/main/resources/application-dev.yml
View file @
75556489
...
...
@@ -5,7 +5,7 @@ spring:
# driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.jdbc.Driver
# url: jdbc:mysql://112.51.130.215:3306/security_enterprise?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://119.3.143.77:3306/bl_appointment
_dev
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://119.3.143.77:3306/bl_appointment?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
username
:
hmit_user
password
:
HmitUser@1234
# #Oracle
...
...
hmit-common/src/main/java/io/hmit/common/utils/MD5.java
View file @
75556489
package
io
.
hmit
.
common
.
utils
;
import
sun.misc.BASE64Encoder
;
import
java.io.UnsupportedEncodingException
;
import
java.nio.charset.StandardCharsets
;
import
java.security.MessageDigest
;
...
...
@@ -50,10 +47,8 @@ public class MD5 {
public
static
String
EncoderByMd5
(
String
str
)
throws
NoSuchAlgorithmException
,
UnsupportedEncodingException
{
//确定计算方法
MessageDigest
md5
=
MessageDigest
.
getInstance
(
"MD5"
);
// BASE64Encoder base64en = new BASE64Encoder();
Base64
.
Encoder
encoder
=
Base64
.
getEncoder
();
//加密后的字符串
// String newstr=base64en.encode(md5.digest(str.getBytes("utf-8")));
String
newstr
=
encoder
.
encodeToString
(
md5
.
digest
(
str
.
getBytes
(
StandardCharsets
.
UTF_8
)));
return
newstr
;
}
...
...
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