• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

JpaRepository cannot be resolved to a type 가 발생합니다 .

19.02.23 12:27 작성 조회수 752

0

https://github.com/ShitaoMiu/startEducation/tree/master/springsecurityEducation

입니다 .

아래 JpaRepository 가 import에러가 발생한다고 글올렸던 사람입니다

답변 1

답변을 작성해보세요.

0

        <dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-starter-security</artifactId>

<scope>test</scope>

</dependency>

<dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-starter-data-jpa</artifactId>

<scope>test</scope>

</dependency>

얘네들 의존성을 test 스콥으로 넣으셨네요. 이러면 테스트 코드에서만 참조할 수 있습니다. 빌드툴 중에 그래들 또는 메이븐 둘 중에 하나는 꼭 학습 하시기 바랍니다.

저 둘 선어 빼면 잘 동작할 겁니다.

감사합니다.