강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

그냥팬더님의 프로필 이미지
그냥팬더

작성한 질문수

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

JPA와 DB 설정, 동작확인

JPA와 DB 설정 질문 드립니다.

작성

·

253

0

member 테스트를 진행하는 도중 아래와 같은 에러가 발생합니다

혹시 몰라 깃헙 참조 해두겠습니다.

https://github.com/PandaHun/JavaTestLabs/tree/master/Jpa

https://github.com/PandaHun/JavaTestLabs/commit/df27a7b9659f5e689295aacee2835ee4bd332800

답변 1

0

김영한님의 프로필 이미지
김영한
지식공유자

안녕하세요. Dahoon Jeong님

확인해보니 @PropertySource 코드가 잘못 들어가 있네요. 해당 내용을 삭제해주시면 됩니다^^

package com.jpa.jpashop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
//@PropertySource("classpath:config.properties") //이 코드 삭제
public class JpashopApplication {

public static void main(String[] args) {
SpringApplication.run(JpashopApplication.class, args);
}
}

감사합니다.

그냥팬더님의 프로필 이미지
그냥팬더

작성한 질문수

질문하기