From 17bcde7a8e52744e61e10da2f886b1fec92af1c4 Mon Sep 17 00:00:00 2001 From: 05412 Date: Wed, 17 Jul 2024 23:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=83=A8=E5=88=86=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 -- src/main/java/dev/surl/surl/controller/SurlGetController.kt | 3 --- src/main/resources/application.yml | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 1b7711f..f8fefc2 100644 --- a/build.gradle +++ b/build.gradle @@ -49,8 +49,6 @@ dependencies { implementation 'io.jsonwebtoken:jjwt-api:0.12.6' implementation 'org.springframework.boot:spring-boot-starter-data-redis' testImplementation 'org.springframework.security:spring-security-test' - compileOnly 'org.projectlombok:lombok' - annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' runtimeOnly 'org.postgresql:postgresql' runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6' diff --git a/src/main/java/dev/surl/surl/controller/SurlGetController.kt b/src/main/java/dev/surl/surl/controller/SurlGetController.kt index 38b152c..7a349d6 100644 --- a/src/main/java/dev/surl/surl/controller/SurlGetController.kt +++ b/src/main/java/dev/surl/surl/controller/SurlGetController.kt @@ -1,6 +1,5 @@ package dev.surl.surl.controller -import dev.surl.surl.cfg.logger import dev.surl.surl.common.Msg import dev.surl.surl.service.SurlService import dev.surl.surl.util.JwtTokenUtil @@ -16,9 +15,7 @@ class SurlGetController( ) { @GetMapping(path = ["/api/surl/get"]) fun getUrlsByUser(@RequestHeader headers: HttpHeaders): Msg> { - logger().logger().info("headers: $headers") val token = jwtTokenUtil.getTokenFromHeader(headers[HttpHeaders.AUTHORIZATION]?.last() ?: "") - logger().logger().info("token: $token") val username = jwtTokenUtil.getUsernameFromToken(token) val urls = surlService.getUrlsByUser(username) return Msg(value = urls) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c1fe6d1..1477715 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -41,7 +41,7 @@ spring: logging: level: root: info - Exposed: info + Exposed: debug base: configs: site: http://127.0.0.1:18888