From a12f130c39af3d8f04b7af54d5b352bf92258676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Miller=20=28=E9=94=BA=E4=BF=8A=29?= Date: Tue, 6 Jul 2021 13:11:18 +0800 Subject: [PATCH] perf($auth-center): reduce injected dependencies --- .../security/controller/JwtRemoteApiController.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/auth-center/src/main/java/com/jmsoftware/maf/authcenter/security/controller/JwtRemoteApiController.java b/auth-center/src/main/java/com/jmsoftware/maf/authcenter/security/controller/JwtRemoteApiController.java index ae7a4a4e..f08559aa 100644 --- a/auth-center/src/main/java/com/jmsoftware/maf/authcenter/security/controller/JwtRemoteApiController.java +++ b/auth-center/src/main/java/com/jmsoftware/maf/authcenter/security/controller/JwtRemoteApiController.java @@ -1,11 +1,9 @@ package com.jmsoftware.maf.authcenter.security.controller; -import cn.hutool.json.JSONUtil; import com.jmsoftware.maf.authcenter.security.service.JwtService; import com.jmsoftware.maf.common.bean.ResponseBodyBean; import com.jmsoftware.maf.common.domain.authcenter.security.ParseJwtResponse; import com.jmsoftware.maf.common.exception.SecurityException; -import com.jmsoftware.maf.springcloudstarter.configuration.MafProjectProperty; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; @@ -30,7 +28,6 @@ @RequestMapping("/jwt-remote-api") public class JwtRemoteApiController { private final JwtService jwtService; - private final MafProjectProperty mafProjectProperty; /** * Parse response body bean. @@ -40,7 +37,6 @@ public class JwtRemoteApiController { @GetMapping("/parse") @ApiOperation(value = "Parse JWT", notes = "Parse JWT (Remote API)") public ResponseBodyBean parse(HttpServletRequest request) throws SecurityException { - log.info("buildProperties.getVersion {}", JSONUtil.toJsonStr(mafProjectProperty.getBuildProperties())); return ResponseBodyBean.ofSuccess( new ParseJwtResponse().setUsername(jwtService.getUsernameFromRequest(request))); }