Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 김영한
- DDL
- 코테
- 스프링
- JSP
- 메이븐
- MVC2
- AOP
- 세션
- 인텔리제이
- Model1
- 자바
- 프레임워크
- 기술 대비
- @RestController
- 서블릿
- 프로그래머스
- @Controller
- SQL
- 코딩테스트
- toUpperCase
- Model2
- order by
- 서브쿼리
- select
- 뉴렉처
- STS
- Join
- MVC
- 인프런
Archives
- Today
- Total
Heestory
[IntelliJ]@Autowired 에러(Junit) 본문
Junit 테스트 시도 중 다음과 같이 @Autowired 에러가 떴다
Autowired members must be defined in valid Spring bean (@Component|@Service|..)
이때 Test 클래스에 @SpringBootTest 를 붙여주면 된다.
'개발(0) > Spring Boot' 카테고리의 다른 글
Spring Boot JAR 배포 시 application.yml 설정 적용 우선순위 (0) | 2025.02.19 |
---|---|
@Controller: return redirectUrl vs return ModelAndView (0) | 2025.01.03 |
Spring Framework: @RestController vs @Controller – 차이점 이해하기 (1) | 2025.01.02 |
[IntelliJ]Junit 기본 설정 중 에러 (Spring Boot 2, Junit4) (0) | 2024.05.20 |
[IntelliJ]Maven 빌드 에러 (0) | 2023.08.17 |