728x90
728x90
[SpringBoot/JPA Hibernate] 예약어 컬럼명 에러 해결(백틱 적용하기) / You have an error in your SQ
트러블슈팅2023. 6. 3. 05:27[SpringBoot/JPA Hibernate] 예약어 컬럼명 에러 해결(백틱 적용하기) / You have an error in your SQ

에러 메세지You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 원인분명 틀린 것이 없는데 어디가 잘못됐나 계속 살펴봤다. 친구요청 보내는 로직도 확인하고@Transactional @Override public String friendReq(FriendReqDTO dto) { if(dto.getFrom().equals(dto.getTo())) return "본인에게 친구요청을 보낼 수 없습니다"; else { FriendReqResEntity req = new FriendReqResEntity(); req.setFrom(..

728x90
728x90
image