spring boot jpa 원생 sql 신문 쓰기 Cannot resolve table 오류 해결 방법



보기→도구 창→영구 옵션 열기

팝 업 된 Persistence 창의 항목 에서 오른쪽 단 추 를 누 르 고 Generate Persistence Mapping→By Database Schema 를 선택 하 십시오.

여기 서 데이터베이스 관련 설정 을 진행 합 니 다.설정 이 성공 하면 아래 에서 데이터베이스 에 있 는 표를 볼 수 있 습 니 다.


driver files 를 다운로드 하거나 로 컬 connector 를 사용 하 십시오.

사용자 정의 연결

my sql 관련 설정 정 보 를 입력 하 십시오.

데이터 소스 를 선택 하면 데이터베이스 와 관련 된 설정 을 볼 수 있 습 니 다.

팝 업 된 Persistence 창의 항목 에서 오른쪽 단 추 를 누 르 고 Assign Data Sources 를 선택 하 십시오...

위 에서 사용자 정의 데이터베이스 설정 을 선택 하 십시오.

그리고 프로그램 에 라 이브 러 리 이름 을 추가 하면 됩 니 다.
@Repository
public interface CollectSwitchRepository extends JpaRepository<CollectSwitchEntity, Integer> {
@Modifying
@Query(nativeQuery = true, value = "update rexel_hzzg.COLLECT_SWITCH t set t.collect = :collect")
public void updateOne(@Param("collect") String collect);
}
일련의 방법 으로 자백 한 후에 잘못 이 해결 되 었 다.
이상 은 우리 가 이 문제 에 부 딪 힌 후의 해결 방법 입 니 다.여러분 이 시도 해 보 세 요.여러분 이 우리 에 대한 지지 에 감 사 드 립 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
thymeleaf로 HTML 페이지를 동적으로 만듭니다 (spring + gradle)지난번에는 에서 화면에 HTML을 표시했습니다. 이번에는 화면을 동적으로 움직여보고 싶기 때문에 입력한 문자를 화면에 표시시키고 싶습니다. 초보자의 비망록이므로 이상한 점 등 있으면 지적 받을 수 있으면 기쁩니다! ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.