Commit f1838a95 authored by zengtianlai3's avatar zengtianlai3

修改启动bug

parent 911b1349
......@@ -3,6 +3,7 @@ package iot.sixiang.license.jwt;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.JWTVerificationException;
import com.auth0.jwt.interfaces.DecodedJWT;
import lombok.extern.slf4j.Slf4j;
......@@ -69,7 +70,7 @@ public class JwtUtil {
DecodedJWT jwt = null;
try {
jwt = verifier.verify(token);
} catch ( RuntimeException e) {
} catch (JWTVerificationException e) {
log.error(e.getMessage());
log.error("解析编码异常");
}
......
spring:
profiles:
active: test
active: dev
application:
name: iot_license #当前服务的名称
main:
allow-bean-definition-overriding: true
## 配置输出日志
logging:
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