다운 받은 프로젝트에 yml 파일을 추가해서 run 해봤는데..
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ' ... ' defined in file 이라는 에러가 잔뜩 떴었다.
블로그에 나와있는 해결 방법 (아래에 링크)
1. @Service, @Controller, @Component, @Configuration 등의 어노테이션 빠뜨렸는지 확인
(⇒ 어노테이션 빠뜨린 거 없었음)
2. xml에 오타 있는지 확인
(⇒ 따로 xml 건드린 적 없었음)
바꾼 건 yml 파일에서의 DB명밖에 없었다. 혹시나 해서 다시 다운받아서 yml 파일 추가해서 run 해봤는데.. 갑자기 됐다...
같이 봐주신 동아리 부원분께서 알려주셨는데 yml 파일에서는 backspace 누르는 것도 파일에 영향을 줄 수도 있다고 한다!! yml 파일에서 DB명 바꾸면서 뭔가 바뀐 게 아닐까 싶다.
참고한 글들)
https://liante0904.tistory.com/113
[Spring] 빈 생성 에러 디버그 Error creating bean with name 'XXX'
스프링은 자바에서 MVC 패턴을 이용해 개발을 할 수 있게 도와준다. 또한 자바의 철학에 맞게 확실한 데이터 형과 문법, 그리고 Bean이라는 개념을 통해 객체 지향 프로그래밍을 사용하고.. 이를
liante0904.tistory.com
https://it-banlim.tistory.com/7
[Spring Boot] Hibernate 사용 시 Error creating bean with name 'entityManagerFactory' 해결
[삽질의 기록] 프로젝트 실행 시 자동으로 해당 class의 이름을 가진 DataBase table을 생성해주기 위해 Spring boot + JPA(Hibernate) 를 사용하였다. 하지만 이상하게도 Error creating bean with name 'entityManagerFactor
it-banlim.tistory.com
https://beagle-dev.tistory.com/122
[Spring] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
1. Bean에서 에러가 나는 경우 참고 링크 : http://liante0904.tistory.com/1132. DB 설정이나 쿼리문이 작성되는 xml 파일 점검 : http://bulkywebdeveloper.tistory.com/47 * 필자는 2번의 경우가 많았다.. Bean에서 문제가
beagle-dev.tistory.com
https://gomgomkim.tistory.com/55
[Spring] UnsatisfiedDependencyException: Error creating bean with name '...' defined in URL 에러 해결법
개요 Swagger 설정 중 아래와 같은 에러가 났다. UnsatisfiedDependencyException: Error creating bean with name '...' defined in URL UnsatisfiedDependencyException 관련해서 8개의 에러가 나타났다. 원인 spring context와 관련된
gomgomkim.tistory.com
'메모' 카테고리의 다른 글
Docker (0) | 2023.07.14 |
---|---|
AWS 과금 관련 링크 (0) | 2023.06.06 |
java.sql.SQLSyntaxErrorException: Table '' doesn't exist (0) | 2023.05.27 |
scanner.nextLine(); (0) | 2023.05.26 |
@NotNull message 빨간 줄 (0) | 2023.05.21 |