inflearn logo
강의

講義

知識共有

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

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

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

138

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

26년2회 실기기출은 언제쯤...

0

12

2

진짜화면이랑달라서못해먹겟어요먹겟어요

0

10

1

git bash .env

1

11

1

네이버 API | '검색 - 책' API 제공 중단

0

11

0

ArticleReadService 관련 질문

0

9

0

kafka 이벤트 발행 실패 시 at-least-once를 보장하는 방법이 궁금합니다.

1

30

1

이론 공부법 요약본 버전 업데이트 문의

0

15

2

domain에 @Entity 와 Repository를 함께 둔 이유가 궁금합니다

1

22

1

해당 프로젝트를 똑같이 따라하려니 spring installer가 버전이 17부터 가능하네요.

0

11

1

Part 2 듣기전 복습하던 중, 아키텍처에 관한 질문이 있습니다.

0

26

2

S3 강의 개선 제안

0

26

2

LiveReload++ 비활성화

0

53

1

SbbApplicationTests 런오류 tetJpa부분?

0

101

1

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

0

129

1

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

0

137

1

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

0

120

1

3-9에서 오류 발생

0

127

0

프로젝트 생성오류 (gradle)

0

251

1

프로젝트 생성 오류

0

1651

1

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

0

579

1

프로젝트 생성 시 gradle 호환

0

361

2

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

0

997

1

sts 버전

0

412

1

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

0

543

1