티스토리 뷰

spring boot

[spring boot오류] annotations , bean 오류

햄밥김치참치버거 2026. 4. 12. 02:35
***************************

APPLICATION FAILED TO START

***************************
​
Description:
​
Field dao in com.kim.test.gazee.service.CustomerServiceServiceImpl required a bean of type 'com.kim.test.customerService.CustomerServiceDAO' that could not be found.
​
The injection point has the following annotations:

   - @org.springframework.beans.factory.annotation.Autowired(required=true)
​
​
Action:
​
Consider defining a bean of type 'com.kim.test.customerService.CustomerServiceDAO' in your configuration.

 

나의 문제점은 어노테이션(@component,@service,@controller)설정 문제가 아니였다..

나의 문제점은 customerServiceMapper문제였다...

resultType, parameterType이 두개중에 customerServiceVO를 사용하면 경로를 정확하게 해줘야 했다.

만약 com.kim.test.customerService안에 customerServiceVO가 있다면

com.kim.test.customerService.customerServiceVO

위 경로를 사용하려면 resultType , parameterType 둘 중 하나 아니면 둘다 customerServiceVO를 사용한다면 저 경로로 변경해 줘야했다.

이렇게 resultType과 parameterType에 적용 시켜야했다.

예외는 있다.) String , int같은 것 들 아니면 다른 경로에 있는 VO들

다른것을 사용하고있는 VO들도 경로를 지정해 주면 된다.

ex) com.kim.test.report.ReportVO

com.kim.test.member.MemberVO

아니면 다시 처음부터 돌아가 차근차근 해 보는 것도 하나의 방법이다.

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2026/06   »
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
글 보관함