From 52f7f1ba63d528cccb88a159a7424652de459ee8 Mon Sep 17 00:00:00 2001 From: zhengjw22 Date: Sun, 11 Aug 2024 07:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/tech/smartboot/servlet/impl/ServletContextImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servlet-core/src/main/java/tech/smartboot/servlet/impl/ServletContextImpl.java b/servlet-core/src/main/java/tech/smartboot/servlet/impl/ServletContextImpl.java index 2b3ad62c..7d3378db 100644 --- a/servlet-core/src/main/java/tech/smartboot/servlet/impl/ServletContextImpl.java +++ b/servlet-core/src/main/java/tech/smartboot/servlet/impl/ServletContextImpl.java @@ -202,7 +202,9 @@ public URL getResource(String path) throws MalformedURLException { } catch (URISyntaxException e) { LOGGER.info("path:" + pathUrl + " ,URISyntaxException:" + e.getMessage()); } - LOGGER.info("path" + ((url == null) ? "(404):" : ":") + pathUrl + " ,url:" + deploymentInfo.getContextUrl()); + if (url == null) { + LOGGER.warn(path + " resource not exists"); + } return url; }