inflearn logo
강의

講義

知識共有

バックエンド開発のための必須講義 - Spring Boot 3

リポジトリ、Junit、依存性注入(DI)、パッケージ分類などの概念と活用

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

172

sonjinju12229978

投稿した質問数 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

sonjinju12229978

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에 뜹니다

static클래스 개념 정리.

0

19

1

static 변수가 저장 되는 위치

0

22

1

완성후 클로드 코드로 점검결과가

1

30

1

맥미니에서 배포(?) 해도 되나요?

1

28

1

동영상 재생이 안됩니다.

1

32

1

Fanout on Read 의 학습 코드에서 질문 있어요

1

41

1

설치

1

46

2

장바구니 질문

0

46

1

트러블슈팅 케이스 스터디 - P 대형 커머스

0

34

2

강의 내용 질문 `[실습] MDC·UTM·세션ID로 "돈 버는 로거" 만들기`

0

35

1

Instant 출력 할때.

0

42

1

LiveReload++ 비활성화

0

84

1

SbbApplicationTests 런오류 tetJpa부분?

0

148

1

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

0

180

1

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

0

185

1

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

0

159

1

3-9에서 오류 발생

0

149

0

프로젝트 생성오류 (gradle)

0

282

1

프로젝트 생성 오류

0

1712

1

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

0

628

1

프로젝트 생성 시 gradle 호환

0

400

2

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

0

1037

1

sts 버전

0

442

1

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

0

580

1