본문 바로가기

Spring17

[Spring Boot] ByteBuddyInterceptor 직렬화 에러 원인 및 해결 방법 ✅ [Spring Boot] ByteBuddyInterceptor 직렬화 에러 원인 및 해결 방법🧨 에러 메시지 요약No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer...(through reference chain: java.util.ArrayList[0]->pharos.groupware.service.team.domain.Team$HibernateProxy["hibernateLazyInitializer"])💡 발생 원인Spring에서 @RestController 혹은 @ResponseBody를 사용해 .. 2025. 8. 4.
[Spring Security] JWT 발급 · 검증 일반 가이드 아래 예시는 “일반적인 JWT 구조”와 “대표적인 클레임”만을 검증하는 형태로 정리한 가이드입니다. 이대로 복사해서 쓰시면, 어떤 토큰이든 쉽게 적용할 수 있습니다.JWT 발급·검증 일반 가이드1. 수동 검증 (jwt.io)jwt.io(https://jwt.io) 에 접속좌측 Encoded 상자에 accessToken 전체 문자열을 붙여넣기우측 Decoded ▶ Payload 영역에서 다음을 확인Standard Claimssub (Subject) → 토큰 대상 식별자(예: 사용자 ID 또는 이름)iat (Issued At) → 발급 시각exp (Expiration) → 만료 시각Custom Claims프로젝트별로 넣은 커스텀 키(예: role, scope, userId 등)가 올바르게 들어갔는지Tip:H.. 2025. 6. 20.
[Eclipse/STS3] 복제한 Maven 기반 프로젝트 Import 오류 해결 ✅ Eclipse(Spring Tool Suite 3)에서 복제한 Maven 프로젝트가 보이지 않을 때 – 원인과 올바른 Import 방법📌 상황 개요기존 프로젝트 student-app을 복제하여 student-app-mysql로 새 프로젝트를 만들고Eclipse(STS)에서 다음 경로로 import를 시도했습니다:File > Import > General > Import Projects from File System하지만...❗ 문제 발생Import Projects from File System에서 프로젝트가 탐색되고 Finish를 눌렀지만Package Explorer에 아무 프로젝트도 표시되지 않음Servers 항목만 있고, 프로젝트는 안 보임🧠 문제 원인원인설명.project 파일의 이 기존과 .. 2025. 6. 11.
[Querydsl] java17 querydsl setting build.gradle plugins { id 'java' id 'org.springframework.boot' version '3.1.4' id 'io.spring.dependency-management' version '1.1.3' } group = 'study' version = '0.0.1-SNAPSHOT' java { sourceCompatibility = '17' } configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' .. 2024. 2. 22.
[Spring/ Error] Web server failed to start. Port 8080 was already in use. 오류 : Web server failed to start. Port 9091 was already in use. 9091 포트가 이미 실행 중인데 스프링 프로젝트롤 또 실행할 경우 오류 발생 해결방법 : lsof -i tcp:{Port 번호} 의 결과로 나온 현재 Port로 실행중인 PID 번호 를 kill 해준다. sudo kill -9 {PID번호} 그리고 패스워드 입력 그러면 해당 Port로 실행 중인 프로세스를 죽일 수 있다. 참고 : https://dundung.tistory.com/148 2023. 10. 12.
[Spring/Error] No serializer found for class 오류 : No serializer found for class ... and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) Serialize : Object to JSON Deserialize : JSON to Object the default configuration of an ObjectMapper instance is to only access properties that are public fields or have public getters/setters. Jackson 라이브러리의 ObjectMapper는 Serialize 할.. 2023. 10. 10.