[IntelliJ] Unable to create tempDir. java.io.tmpdir is set to
·
Troubleshooting
1. 문제프로젝트를 깃허브에 올릴 수 없는 상황이라 zip으로 압축해 메일로 보낸 후 집에서 실행했는데 아래와 같은 임시저장 폴더를 해당 경로에 생성할 수 없다는 WebServerException 이 발생했다. 2025-03-20 23:56:08.709 ERROR 13284 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti..
[Spring Boot] [성능 개선] Spring Boot Validation에 걸릴 경우 Filter가 2번 작동하는 문제
·
Troubleshooting
1. 문제상황@Valid 어노테이션을 사용하여 DTO에 유효성 검사를 적용하면, 정상적인 요청에서는 문제가 발생하지 않았지만,유효성 검사에 실패하는 경우, JWT를 검증하는 필터가 한 번 더 실행되어 불필요한 로직이 수행되는 문제가 발생했다. 예시)POSThttp://localhost:8080/api/v1/auth/login{ "username" : "tes", 2025-03-03T18:39:03.379+09:00 WARN 25300 --- [springboot3template] [nio-8080-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidE..
Spring Boot 에서 네이버 클라우드 Object Storage 에 파일 업로드
·
Spring Boot/Sprng Boot Sample Code
1. 네이버 클라우드 플랫폼에서 Object Storage 이용신청처음 가입해 결제정보를 등록하면 10만원에 해당하는 크래딧을 주기 때문에 테스트 용도로는 추가적인 결제 없이 충분히 활용 가능하다. https://www.ncloud.com/product/storage/objectStorage 네이버 클라우드 플랫폼 Naver Cloud Flatform -> 서비스 -> Storage -> Object Storage 2. 버킷 생성https://console.ncloud.com/objectStorage/objectStorageList 메인페이지 -> 콘솔 -> Object Storage -> Bucket Management -> 버킷생성 3. 인증키 생성마이페이지 -> 계정관리 -> 인증키 관리 -> 신큐..
[Spring Boot 3.x] 1. 회원가입 구현
·
Spring Boot/Sprng Boot Sample Code
거의 모든 웹 애플리케이션의 시작인 회원가입 로그인 중 회원가입을 구현해 보려 한다. 1. 개발환경기본적으로 스프링부트 3, 자바는 17을 사용중이다.데이터 베이스는 MySQLJPA를 사용해 따로 SQL문을 작성하지 않고 작업하고 있다.카테고리도구/기술프로그래밍 언어Java 17프레임워크Spring Boot 3.4.2빌드 도구gradle데이터베이스MySQLORM 도구Spring Data JPAIDEIntelliJ버전 관리Git, GitHub, GitLab패키지 관리Maven CentralAPI 문서화Swagger로깅SLF4J 2. build.gradle의존성은 기본적인 프로젝트 실행을 위한 web starter와, mysql, jpa, 비밀번호 암호화를 위한 security 그리고 편의를 위해 lombo..