본문 바로가기

Spring/오류잡기3

[FetchType.Lazy로 인한 Json 오류] Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException 1. 오류 FetchType.Lazy로 인한 Json 오류 There was an unexpected error (type=Internal Server Error, status=500). Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties disco.. 2022. 1. 14.
@CreationTimestamp 시간 오류 1. 오류 Spring Data JPA 사용하면서, MySQL에 @CreationTimestamp 사용하여 insert한 시간을 저장할 때, DB에 현재시간과 다른 시간 삽입 EX) 현재 시간 : 2021-10-05 오후 05:21:00 → DB 저장 시간 : 2021-10-05 오전 06:54:00 2. 해결방법 application.properties의 datasource.url serverTimezone=UTC → ?serverTimezone=Asia/Seoul 변경 # 변경 전 spring.datasource.url=jdbc:mysql://localhost:3306/ticket?serverTimezone=UTC&characterEncoding=UTF-8 # 변경 후 spring.datasource.. 2021. 10. 5.
Web server failed to start. Port 8080 was already in use. 1. 오류 해당 포트를 이미 사용 중 *************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port. 2. 해결방법 다른 포트번호로 변경해야 함 방법 1) src - main - resources - application.properties 에서 포트 번호 변경 방법2) sr.. 2021. 7. 9.