Error

JPA save 매칭 안될 때

공주맛밤 2022. 6. 24. 12:28

레포지토리 파일에서

public interface UserRepository extends JpaRepository<User, Long>

JpaRepository<모델, 모델에서 id타입> id값을 넣어줘야 하는 부분에 애먼 타입을 넣어주게 되면 원치 않게 db에 저장이 될 수 있다.

728x90
반응형

'Error' 카테고리의 다른 글

@Sl4j Test환경에서의 오류  (0) 2022.06.21