life is egg
@Bean 등록 에러 본문
***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'timeTraceAop', defined in class path resource [com/example/hellospring/Service/SpringConfig.class], could not be registered. A bean with that name has already been defined in file [C:\Users\zzang\Downloads\java\hello-spring\build\classes\java\main\com\example\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
>> 동일 클래스에 대해 @Component로 등록했는데 왜 @Bean으로 또 수동등록 하냐고 투덜거리는 모습이다
둘중에 하나는 지워주자
'개인공부 > 삽질' 카테고리의 다른 글
핫이슈 게시물 좋아요기준 top3 (0) | 2023.03.17 |
---|---|
org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password (0) | 2023.01.11 |
게시글 삭제 시 댓글 삭제 (2) | 2022.12.29 |
댓글 삭제 수정 (0) | 2022.12.27 |
게시글마다 댓글조회하기. (1) | 2022.12.26 |
Comments