목록개발공부 (184)
개발자 도전기
MUI Grid2 사용 시 children이 lnvalid prop이라고 나오는 경우 {hidden || }을{!hidden && } 으로 변경 끗

문제 상황Lombok 라이브러리를 사용했지만 @Setter 어노테이션이 제대로 적용되지 않아 cannot find symbol method가 뜨는 문제 해결 방법 1. Enable annotation processing 체크 표시를 해준다 2. annotationProcessor 의존성 추가 implementation('org.projectlombok:lombok') 만 추가했다면 annotationProcessor('org.projectlombok:lombok')를 추가해준다 그래서 AnnotationProcessor란? Annotation Processing이란 컴파일 시점에서 어노테이션을 처리하여 코드를 생성하거나 유효성을 검사하는 기능이다. Lombok은 컴파일 시점에 @Setter 어노테..
회원 프로필 사진을 수정하는 메소드를 작성하던 도중 NoSuchFileException이 발생했다. C:\Users\user\AppData\Local\Temp\tomcat.8080.6497677539176642649\work\Tomcat\localhost\ROOT\upload_fbf7e74c_7d28_4e24_bc4f_97a5b0b6379a_00000008.tmp이 존재하지 않는다는 로그가 뜬다. @PutMapping("users/{id}")public ResponseEntity updateUser(User user, Authentication authentication, @RequestParam(value = "profileImage[]", re..

당연하다... 필드에 final을 붙이지 않았기 때문이다.... (지끈)
문제 Negative matches: ----------------- OAuth2ResourceServerJwtConfiguration.OAuth2SecurityFilterChainConfiguration: Did not match: - AllNestedConditions 1 matched 1 did not; NestedCondition on DefaultWebSecurityCondition.Beans @ConditionalOnMissingBean (types: org.springframework.security.web.SecurityFilterChain; SearchStrategy: all) found beans of type 'org.springframework.sec..

문제 cors 설정 중 CorsFilter의 빈을 찾을 수 없다는 오류가 발생했다 원인 SecurityConfiguration에서 CorsFilter 의존성을 주입할 때import org.apache.catalina.filters.CorsFilter; 를 그대로 import했는데, 나는 CorsConfig 클래스에 @Configuration 어노테이션을 붙여 CorsFilter를 @Bean으로 등록했기 때문이다 해결private final CorsConfig corsConfig; CorsConfig를 의존성 주입받고 corsConfig.corsFilter() 형태로 사용했다 .addFilter(corsConfig.corsFilter())

🚨 ERRORCaused by: java.lang.NullPointerException: Parameter specified as non-null is null @Value 어노테이션으로 주입한 값이 null인 오류가 발생했다. 💣 CAUSEpublic SmsUtil() { this.messageService = NurigoApp.INSTANCE.initialize(apiKey, apiSecret, "https://api.coolsms.co.kr");} 생성자를 통해 field에 값을 주입해주었는데 의존성 주입 전에 생성자가 호출되는 문제 때문에 null 값이 들어가게 되었다💡 SOLVE@PostConstruct를 사용하였습니다@PostConstruct를 사용하면 의존성 주입이 이루어진 후 초..
VITE를 사용하고 있다면 REACT_APP_이 아닌 VITE_ 를 앞에 작성해주어야 한다 사용시에는 import.meta.env로 접근! .gitignore에 추가했는데도 commit 목록에 뜬다면 이 문제일 가능성이 높다. 그래도 undefined가 뜬다면 .env 파일 위치를 src가 아닌 가장 최상단 폴더로 옮겨보자!

요청 경로로 302 Found와 /login 경로로 304 Not Modified 요청이 함께 뜬다면스프링 시큐리티가 막고 있는 것이니 @SpringBootApplication에 exclude = SecurityAutoConfiguration.class 추가해주자@SpringBootApplication(exclude = SecurityAutoConfiguration.class)public class BackendApplication { public static void main(String[] args) { SpringApplication.run(BackendApplication.class, args); }} csrf가 막고 있어서 그렇다,, 시큐리티 자동 설정 해제하니 200 응..