Skip to content

Commit

Permalink
feat: AirbnbApplication 에 @ServletComponentScan 추가 (#35)
Browse files Browse the repository at this point in the history
-  @component로 인해 Filter가 또 스캔되면서 필터가 중복해서 등록되는 문제 해결위해 '@ServletComponentScan + @webfilter 방식'만 적용되도록 하기 위해
  • Loading branch information
mybloom committed Jun 9, 2022
1 parent 9ae718e commit 09bd3b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BE/src/main/java/org/team4/airbnb/AirbnbApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 09bd3b6

Please sign in to comment.