Commit f1838a95 authored by zengtianlai3's avatar zengtianlai3

修改启动bug

parent 911b1349
...@@ -3,6 +3,7 @@ package iot.sixiang.license.jwt; ...@@ -3,6 +3,7 @@ package iot.sixiang.license.jwt;
import com.auth0.jwt.JWT; import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier; import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTVerificationException;
import com.auth0.jwt.interfaces.DecodedJWT; import com.auth0.jwt.interfaces.DecodedJWT;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -69,7 +70,7 @@ public class JwtUtil { ...@@ -69,7 +70,7 @@ public class JwtUtil {
DecodedJWT jwt = null; DecodedJWT jwt = null;
try { try {
jwt = verifier.verify(token); jwt = verifier.verify(token);
} catch ( RuntimeException e) { } catch (JWTVerificationException e) {
log.error(e.getMessage()); log.error(e.getMessage());
log.error("解析编码异常"); log.error("解析编码异常");
} }
......
spring: spring:
profiles: profiles:
active: test active: dev
application: application:
name: iot_license #当前服务的名称 name: iot_license #当前服务的名称
main:
allow-bean-definition-overriding: true
## 配置输出日志 ## 配置输出日志
logging: logging:
config: classpath:logback-spring.xml config: classpath:logback-spring.xml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment