[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a bean of type ~~ that could not be found.

2022. 2. 14. 12:00·레거시모음/오류해결

에러상황


***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.bigbell.accountbook.rest.AccountRestController required a bean of type 'com.bigbell.accountbook.service.TodayAccountService' that could not be found.


Action:

Consider defining a bean of type 'com.bigbell.accountbook.service.TodayAccountService' in your configuration.

 


 

위 에러는 Entity, Service, DAO를 구성할 때 생길 수 있는 에러이다.

내용은 Bean이 발견되지 않는다는 건데 클래스 위에 빈을 식별하게 도와주는 어노테이션을 넣지 않아서 그런 것이다.

 

엔티티 클래스 위에 @Entity 어노테이션

Sevice 클래스 위에 @Service 어노테이션

DAO 클래스 위에 @Repository 어노테이션

 

가 있는지 다시 한 번 확인해보자.

'레거시모음/오류해결' 카테고리의 다른 글
  • [오류해결][Git] merge Conflict 해결
  • [오류해결] fatal: The current branch master has no upstream branch.To push the current branch and set the remote as upstream
  • [Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a single bean, but 2 were found
  • [Spring Boot][오류해결] org.springframework.beans.factory.UnsatisfiedDependencyException
gakko
gakko
좌충우돌 개발기
  • gakko
    MYVELOP 마이벨롭
    gakko
  • 전체
    오늘
    어제
    • 분류 전체보기 (214)
      • 끄적끄적 (6)
      • Spring (21)
      • Java (3)
      • NestJS (1)
      • Redis (3)
      • RabbitMQ (0)
      • Test (3)
      • 대외활동 (36)
        • 부스트캠프 (23)
        • IT커뮤니티 (5)
        • 글또 (5)
        • 컨퍼런스 (3)
      • Infra (5)
        • Docker (1)
        • Jenkins (1)
        • AWS (1)
      • CS (26)
        • 자료구조 (13)
        • 운영체제 OS (12)
        • 데이터베이스 (1)
      • MySQL (7)
      • Git & GitHub (16)
        • Git (12)
        • Github Actions (1)
        • 기타(마크다운 등) (3)
      • 프로젝트 (2)
      • 리눅스 (6)
        • 기초 (6)
        • 리눅스 서버 구축하기 (0)
      • 후기 (3)
        • Udemy 리뷰 (3)
      • Python (12)
      • 레거시모음 (64)
        • 스프링 (11)
        • 자바 클래스&메소드 (1)
        • 오류해결 (18)
        • JSP & Servlet (12)
        • 자바스크립트 기초 (3)
        • React (2)
        • 이클립스 (1)
        • 알고리즘 문제풀이 (16)
      • 디자인패턴 (0)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 우진님
  • 공지사항

  • 인기 글

  • 태그

    자바스크립트
    MySQL
    부스트캠프 멤버십
    부스트캠프 7기
    GitHub
    파이썬
    오류해결
    웹개발
    Spring
    스프링부트
    부스트캠프
    자바
    Git
    알고리즘
    java
    os
    Python
    스프링
    운영체제
    jsp
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.0
gakko
[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a bean of type ~~ that could not be found.
상단으로

티스토리툴바