We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8cf35 commit c9363b9Copy full SHA for c9363b9
pom.xml
@@ -5,7 +5,7 @@
5
6
<groupId>com.example</groupId>
7
<artifactId>demo</artifactId>
8
- <version>0.0.1-SNAPSHOT</version>
+ <version>0.1.0-SNAPSHOT</version>
9
<packaging>jar</packaging>
10
11
<name>springboot-security-jwt</name>
src/main/java/com/bfwg/security/TokenHelper.java
@@ -59,11 +59,10 @@ public String refreshToken(String token) {
59
}
60
61
public String generateToken(String username) {
62
- Date d = generateCurrentDate();
63
return Jwts.builder()
64
.setIssuer( APP_NAME )
65
.setSubject(username)
66
- .setIssuedAt(d)
+ .setIssuedAt(generateCurrentDate())
67
.setExpiration(generateExpirationDate())
68
.signWith( SIGNATURE_ALGORITHM, SECRET )
69
.compact();
0 commit comments