일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Spring
- http
- 자바
- inflearn http
- 인프런 http
- Til
- 백엔드
- java
- 인프런 스프링
- 인프런
- fastcampus
- 스프링
- 자바 스프링
- 객체지향
- inflearn
- java if
- 공부기록
- 개발자
- 공부블로그
- Today I Learned
- java 기초
- java기초
- 코린이
- 개발일기
- til 2021
- 자바기초
- inflearn spring
- Java Spring
- 기술블로그
- 자바 기초
Archives
- Today
- Total
코딩하는 쨈이
[Spring - 오류해결] Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true 본문
쨈,ErrorLog
[Spring - 오류해결] Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
정쨈 2020. 12. 31. 18:11[오류내용]

***************************
APPLICATION FAILED TO START
***************************
Description: The bean 'timeTraceAop', defined in class path resource [hello/hellospring/SpringConfig.class], could not be registered. A bean with that name has already been defined in file [/Users/chloe/Study/Spring/hello-spring/out/production/classes/hello/hellospring/aop/TimeTraceAop.class] and overriding is disabled.
Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
Process finished with exit code 1
[오류해결]
스프링 2.1 버전부터는 overriding의 default 값이 false로 나와서 생기는 오류라고한다.
해결 방법은 application.properties에 Action에 나와있는 'spring.main.allow-bean-definition-overriding=true'를 넣어주면 된다.