Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_ad_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
maliang
lwby_ad_data
Commits
9d377b82
Commit
9d377b82
authored
Apr 25, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data
parent
3c8801dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
pom.xml
pom.xml
+5
-0
SecurityApplicationTest.java
...ava/com/boot/security/server/SecurityApplicationTest.java
+2
-12
No files found.
pom.xml
View file @
9d377b82
...
...
@@ -143,6 +143,11 @@
<artifactId>
jedis
</artifactId>
<version>
2.10.2
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
</dependency>
</dependencies>
...
...
src/test/java/com/boot/security/server/SecurityApplicationTest.java
View file @
9d377b82
package
com
.
boot
.
security
.
server
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.test.context.junit4.SpringRunner
;
@SpringBootTest
@RunWith
(
SpringRunner
.
class
)
public
class
SecurityApplicationTest
{
@Autowired
private
BCryptPasswordEncoder
passwordEncoder
;
public
class
SecurityApplicationTest
{
@Test
public
void
password
()
{
String
string
=
passwordEncoder
.
encode
(
"admin"
)
;
String
string
=
""
;
System
.
out
.
println
(
string
);
System
.
out
.
println
(
string
.
length
());
}
...
...
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