mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-17 17:41:15 +08:00
Merge branch 'dev' of github.com:dromara/sa-token into dev
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.11.2</version>
|
||||
<version>2.12.6.1</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- jackson-datatype-jsr310 -->
|
||||
|
||||
@@ -112,7 +112,9 @@ public class SaJwtUtil {
|
||||
* @return 解析后的jwt 对象
|
||||
*/
|
||||
public static JWT parseToken(String token, String keyt) {
|
||||
|
||||
// 秘钥不可以为空
|
||||
SaTokenException.throwByNull(keyt, "请配置jwt秘钥");
|
||||
|
||||
// 如果token为null
|
||||
if(token == null) {
|
||||
throw NotLoginException.newInstance(null, NotLoginException.NOT_TOKEN);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<version>2.0.0.RELEASE</version>
|
||||
<version>2.5.12</version>
|
||||
</dependency>
|
||||
<!-- OAuth2.0 (optional) -->
|
||||
<dependency>
|
||||
|
||||
Reference in New Issue
Block a user