Merge branch 'dev' of github.com:dromara/sa-token into dev

This commit is contained in:
click33
2022-04-21 13:34:10 +08:00
3 changed files with 5 additions and 3 deletions

View File

@@ -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 -->

View File

@@ -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);

View File

@@ -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>