From 09bd3b67fa74fe56658b35f3d5f31e6ede120238 Mon Sep 17 00:00:00 2001 From: mybloom Date: Fri, 10 Jun 2022 08:17:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20AirbnbApplication=20=EC=97=90=20=20@Ser?= =?UTF-8?q?vletComponentScan=20=EC=B6=94=EA=B0=80=20(ios-h/airbnb#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - @Component로 인해 Filter가 또 스캔되면서 필터가 중복해서 등록되는 문제 해결위해 '@ServletComponentScan + @WebFilter 방식'만 적용되도록 하기 위해 --- BE/src/main/java/org/team4/airbnb/AirbnbApplication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BE/src/main/java/org/team4/airbnb/AirbnbApplication.java b/BE/src/main/java/org/team4/airbnb/AirbnbApplication.java index 6b62415af..238954216 100644 --- a/BE/src/main/java/org/team4/airbnb/AirbnbApplication.java +++ b/BE/src/main/java/org/team4/airbnb/AirbnbApplication.java @@ -2,8 +2,10 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.data.jpa.repository.config.EnableJpaAuditing; +@ServletComponentScan @EnableJpaAuditing @SpringBootApplication public class AirbnbApplication {