티스토리 뷰
spring
The dependencies of some of the beans in the application context form a cycle: 오류
tonirr 2020. 5. 19. 14:38Description:
The dependencies of some of the beans in the application context form a cycle:
entityManagerFactory defined in class path resource [com/example/demo/config/DatabaseConfig.class]
┌─────┐
| dataSource defined in class path resource [com/example/demo/config/DatabaseConfig.class]
↑ ↓
| routingDataSource defined in class path resource [com/example/demo/config/DatabaseConfig.class]
↑ ↓
| org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker
└─────┘
Process finished with exit code 1
** 순환참조 오류
DatabaseConfig.java 파일에서 Database 를 연동시켜주는 과정을 정의해놓고
Application main 에서
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
를 추가하지 않았다. 추가시켜주고 해결
참고
'spring' 카테고리의 다른 글
[Spring] Annotation @Bean, @Component (0) | 2020.05.25 |
---|---|
[Spring] Request, Response와 Annotation (0) | 2020.05.22 |
[Spring] powershell에서 maven build 및 베포하기 (0) | 2020.02.23 |
jar 파일 maven 으로 빌드하기 (0) | 2020.02.15 |
spring security /login?logout (0) | 2020.02.15 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 동적프로그래밍
- BFS
- 인접행렬
- server side rendering
- 스텍
- dfs
- 퀵정렬
- 병행프로세스
- 자료구조
- C
- javascript
- client side rendering
- stackframe
- Stack
- 최단경로
- C++
- 배열
- 이진탐색
- 구조체
- 알고리즘
- 재귀함수
- react
- Java
- 운영체제
- 클래스
- 인접리스트
- 교착상태
- 입출력장치
- 소프트웨어
- 세마포어
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함