From e82d9b86b4f731bb94ea512fda01835104bd6788 Mon Sep 17 00:00:00 2001 From: momo <2296828474@qq.com> Date: Wed, 10 May 2023 06:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E4=B8=8D=E8=83=BD=E8=B7=A8=E5=9F=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/votesystem/ssl/config/MyWebConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java b/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java index bac3ee2..fa0897d 100644 --- a/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java +++ b/vote/src/main/java/com/votesystem/ssl/config/MyWebConfiguration.java @@ -25,7 +25,7 @@ public class MyWebConfiguration implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { - registry.addResourceHandler("/api/file/**").addResourceLocations("file:" + imagePath + "/"); + registry.addResourceHandler(imagePath).addResourceLocations("file:" + imagePath + "/"); } // @Override