강의

멘토링

커뮤니티

Inflearn コミュニティ Q&A

sonjinju12229978 のプロフィール画像
sonjinju12229978

投稿した質問数

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

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

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

作成

·

101

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());

}

}

 

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

sonjinju12229978 のプロフィール画像
sonjinju12229978

投稿した質問数

質問する