🛠️ 개발 환경 및 테스트 환경OS : Window / Mackotlin : 1.7.10Spring Boot : 2.7.0💬 상황 설명회사의 개발 환경은 윈도우이고, 재택 근무를 할 때의 개발환경은 맥 환경이다. 회사의 프로젝트를 맥에서 실행했을 때, 다음과 같은 에러를 마주쳤다.[THYMELEAF][http-nio-8080-exec-1] Exception processing template "error": Error resolving template [error], template might not exist or might not be accessible by any of the configured Template ResolversServlet.service() for servlet [dispat..
Kotlin / Spring Boot의 프로젝트이지만, Java / Spring Boot와 동일하게 해결이 가능합니다 😀 개발 환경 🍃 Spring : Spring Boot 2.7.17 📺️ View : Thymeleaf / jQuery 3.4.1 🛠️ Kotlin / Java : Amazon corretto 17 💬 상황 설명 타임리프를 이용한 SSR로 뷰를 구성한 뒤, Ajax를 이용해 form-data를 서버에 보내 @RequestBody로 받는 과정에서 아래와 같은 에러가 발생했다. WARN 19911 --- [nio-8080-exec-3] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter...
개발 환경 💻 OS : M1 Mac Ventura 13.1 🍃 Spring : Spring Boot 2.7.7 🛠️ Java : Amazon corretto 17 📦 Stack : AWS S3, EC2(Amazon Linux) 💬 상황 설명 로컬 환경에서 S3에 이미지를 업로드할 때에는 문제가 없었지만, EC2 배포 환경에서는 이미지를 업로드가 실패하는 에러가 발생했다. View 단에서 로그를 찍어보니 아래와 같은 에러가 발생하였고, EC2에서 Spring 로그를 보니 API 요청도 가지 않는 상황이었다. Request Entity Too Large 🔎 원인 분석 우선 크기에 문제가 있는지 확인하기 위해 업로드 되는 최대 용량을 확인해보았다. 왜인지 상황마다 다르긴했지만 1MB 이하는 모두 정상적으로 올..
💬 상황 설명 간단하게 로그인 페이지를 매핑하기 위해 @GetMapping으로 연결해준 뒤, LoginRequestDto를 model에 담아 View에 보내준 상태에서 해당 에러가 발생했다. [THYMELEAF][http-nio-8080-exec-1] Exception processing template "login-form": An error happened during template parsing (template: "class path resource [templates/login-form.html]") org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class ..
💬 상황 설명 레거시 프로젝트를 리팩토링하기 위해 실행시키니 아래와 같은 에러 구문 확인 Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEn..
💬 상황 설명 비밀번호 변경 기능을 구현하던 중 아래와 같은 에러 구문을 확인했다. log도 없이 단순히 아래 구문만 뜬게 이상하여 Bean 등록이 제대로 되어있는지, 로직에는 문제가 없는지 확인을 했지만 아무런 문제가 없었다. Empty encoded password 🛠 구현 코드 public class MemberController { @PostMapping("...") public String doModifyPassword(ModifyPasswordDto dto, @AuthenticationPrincipal MemberContext context){ if(checkMatchPassword(context.getMember().getUsername(), dto.getOldPassword())){ .....