inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

백엔드 개발을 위한 필수 강의 - 스프링 부트3

리포지터리, Junit, 의존성 주입(DI), 패키지 분류 등의 개념과 활용

SbbApplicationTests에서 JUnit Test런을 하면 x표시하며 오류가나요!!!

122

손진주

작성한 질문수 14

0

package com.mysite.sbb;

 

import static org.junit.jupiter.api.Assertions.assertEquals;

 

import org.junit.jupiter.api.Test;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.boot.test.context.SpringBootTest;

 

 

@SpringBootTest

class SbbApplicationTests {

 

@Autowired

private QuestionRepository questionRepository;

 

@Test

void testJpa() {

Question q = this.questionRepository.findBySubjectAndContent(

"sbb가 무엇인가요?", "sbb에 대해서 알고 싶습니다.");

assertEquals(1, q.getId());

}

}

 

java aws spring-boot

답변 1

0

손진주

TaskSchedulingConfigurations.ThreadPoolTaskSchedulerBuilderConfiguration#threadPoolTaskSchedulerBuilder matched:

- @ConditionalOnMissingBean (types: org.springframework.boot.task.ThreadPoolTaskSchedulerBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition)

 

TransactionAutoConfiguration matched:

- @ConditionalOnClass found required class 'org.springframework.transaction.PlatformTransactionManager' (OnClassCondition)

이런오류가 console에 뜹니다

정처기 질문

0

13

2

자식 기본 생성자 출력 조건

0

7

1

부모 및 자식 기본생성자 호출

0

10

1

포인터 16강 9:44

0

9

1

static 변수를 호출할때 인스턴스변수 호출하듯이 호출해도 되나요?

0

8

1

수강 기간 연장 문의

0

8

1

aws 관련 질문드립니다.

1

15

3

6강 17:50

0

16

2

6강 11:37

0

21

2

08:30 이중포인터 질문

0

19

1

spring ai에서 RAG ETL 파이프라인 성능 최적화에 대해 질문이 있습니다!

1

25

1

LiveReload++ 비활성화

0

42

1

SbbApplicationTests 런오류 tetJpa부분?

0

90

1

쿼리문이 console에서 형성이 안되고 아래와 같은 코드오류걸려요

0

116

1

SbbApplicaitonTest JUnit 테스트 런을 하면 아래와 같은 오류가 Console에 뜹니다

0

123

1

[리포지터리] SbbApplicationTests에서부터 오류

0

110

1

3-9에서 오류 발생

0

114

0

프로젝트 생성오류 (gradle)

0

234

1

프로젝트 생성 오류

0

1623

1

h2 console 뭔짓을 해봐도 안되네요,..

0

544

1

프로젝트 생성 시 gradle 호환

0

346

2

H2 > IO Exception [90028-224] 해결법을 모르겠습니다

0

971

1

sts 버전

0

398

1

<템플릿, 타임리프, 루트 URL, 서비스 URL, 프리픽스 등의 개념과 활용>이 동영상은 전편의 동영상이랑 내용이 같은거 같은데요??

0

533

1